/* ============================================================
   post-ad-wizard.css
   Styles for the Multi-Step "Post Proposal" Wizard Form
   Used by: poruwa_app/views/page/post_ad.php
   ============================================================ */

/* Fix form-group positioning conflict with wizard layout */
.form-group {
    position: unset !important;
}

.customer-auth-form .form-control,
.customer-auth-form .bootstrap-select > .dropdown-toggle,
.customer-auth-form textarea,
.customer-auth-form select {
   background-color: #f7f7f7 !important;
   border: 1px solid #d9d9d9 !important;
   border-radius: 8px !important;
   color: #333 !important;
   min-height: 46px !important;
   box-shadow: none !important;
   font-size: 16px !important;
   transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.customer-auth-form .form-control::placeholder,
.customer-auth-form textarea::placeholder {
   color: #8a8a8a;
}

.customer-auth-form .form-control:focus,
.customer-auth-form .bootstrap-select > .dropdown-toggle:focus,
.customer-auth-form textarea:focus,
.customer-auth-form select:focus {
   border-color: #fe7456 !important;
   box-shadow: 0 0 0 3px rgba(254, 116, 86, 0.12) !important;
   background-color: #fff !important;
   outline: none;
}

.customer-auth-form .bootstrap-select > .dropdown-toggle {
   padding: 10px 38px 10px 12px !important;
   text-align: left !important;
   line-height: 1.4 !important;
}

.customer-auth-form .bootstrap-select .dropdown-toggle .filter-option {
   color: #333 !important;
}

.customer-auth-form .bootstrap-select .dropdown-menu {
   border-radius: 8px;
   border: 1px solid #e6e6e6;
   box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
   margin-top: 4px;
}

.customer-auth-form .bootstrap-select .dropdown-menu li a {
   padding: 10px 12px;
   color: #333;
}

.customer-auth-form .bootstrap-select .dropdown-menu li a:hover,
.customer-auth-form .bootstrap-select .dropdown-menu li a:focus,
.customer-auth-form .bootstrap-select .dropdown-menu li.active a {
   background: #fff3f1;
   color: #222;
}

.customer-auth-form .bootstrap-select .caret {
   border-top-color: #666 !important;
}

.customer-auth-form .customer-login-actions {
   display: flex;
   flex-wrap: wrap;
   gap: 12px;
   align-items: center;
   margin-top: 24px;
}

.customer-auth-form .customer-login-actions .btn,
.customer-auth-form .customer-login-actions a.btn {
   border-radius: 10px;
   min-height: 46px;
   padding: 12px 18px !important;
   font-size: 14px;
   font-weight: 700;
   letter-spacing: 0.04em;
   text-transform: uppercase;
   transition: all 0.2s ease;
}

.customer-auth-form .customer-login-actions .prev-step,
.customer-auth-form .customer-login-actions .next-step,
.customer-auth-form .customer-login-actions .submit-step,
.customer-auth-form .customer-login-actions a.btn {
   flex: 0 0 auto;
}

.customer-auth-form .customer-login-actions .prev-step {
   background: #fff;
   color: #444;
   border: 1px solid #d7d7d7;
}

.customer-auth-form .customer-login-actions .next-step,
.customer-auth-form .customer-login-actions .submit-step {
   background: #fe7456;
   color: #fff;
   border: 1px solid #fe7456;
   box-shadow: 0 8px 16px rgba(254, 116, 86, 0.18);
}

.customer-auth-form .customer-login-actions .next-step:hover,
.customer-auth-form .customer-login-actions .submit-step:hover,
.customer-auth-form .customer-login-actions .next-step:focus,
.customer-auth-form .customer-login-actions .submit-step:focus {
   background: #e85f44;
   border-color: #e85f44;
   color: #fff;
}

.customer-auth-form .customer-login-actions .existing-account-link {
   background: #fff;
   color: #444 !important;
   border: 1px solid #d7d7d7;
   text-decoration: none;
   box-shadow: none;
}

.customer-auth-form .customer-login-actions .existing-account-link:hover,
.customer-auth-form .customer-login-actions .existing-account-link:focus {
   background: #f7f7f7;
   color: #444 !important;
   border-color: #c8c8c8;
}

/* ============================================================
   Wizard Step Indicator
   ============================================================ */

.wizard-steps-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding: 0 10px;
    position: relative;
}

/* Background track line connecting all step circles */
.wizard-steps-container::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 55px;
    right: 55px;
    height: 3px;
    background: #e9e9e9;
    z-index: 1;
}

/* Animated fill line that grows as user progresses */
.wizard-progress-bar-fill {
    position: absolute;
    top: 25px;
    left: 55px;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #fe7456 0%, #fd3b73 100%);
    z-index: 2;
    transition: width 0.4s ease;
}

/* Individual step item wrapper */
.wizard-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 3;
    cursor: pointer;
    position: relative;
    flex: 1;
    max-width: 120px;
}

/* Circle number badge */
.wizard-step .step-num {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #e9e9e9;
    color: #999;
    font-weight: bold;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 3;
}

/* Active step circle */
.wizard-step.active .step-num {
    border-color: #fe7456;
    color: #fe7456;
    background: #fff;
    box-shadow: 0 0 15px rgba(254, 116, 86, 0.2);
}

/* Completed step circle — filled with gradient */
.wizard-step.completed .step-num {
    border-color: #fd3b73;
    background: linear-gradient(135deg, #fe7456 0%, #fd3b73 100%);
    color: #fff;
    box-shadow: 0 4px 10px rgba(253, 59, 115, 0.3);
}

/* Step label text */
.wizard-step .step-label {
    margin-top: 10px;
    font-size: 13px;
    color: #888;
    font-weight: 500;
    text-align: center;
    transition: color 0.3s ease;
}

.wizard-step.active .step-label {
    color: #fe7456;
    font-weight: bold;
}

.wizard-step.completed .step-label {
    color: #fd3b73;
}

/* ============================================================
   Upload Cards (Drag & Drop / Browse)
   ============================================================ */

.upload-card {
    border: 2px dashed #dcdcdc;
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    background: #fafafa;
    transition: all 0.3s ease;
    position: relative;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
    /* Ensure the card is always fully clickable */
    overflow: hidden;
    user-select: none;
}

.upload-card:hover,
.upload-card.dragover {
    border-color: #fe7456;
    background: #fdf6f4;
}

.upload-card.dragover {
    border-style: solid;
}

/* Hidden file input — must remain within normal flow so the click target is valid */
.upload-card input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 10;
}

/* Upload icon (glyphicon) */
.upload-icon {
    font-size: 36px;
    color: #bbb;
    margin-bottom: 10px;
    transition: color 0.3s ease;
    pointer-events: none;
}

.upload-card:hover .upload-icon {
    color: #fe7456;
}

/* Text content inside upload area */
.upload-text {
    font-size: 14px;
    color: #555;
    margin: 5px 0;
    pointer-events: none;
}

.upload-text span {
    color: #fe7456;
    font-weight: bold;
    text-decoration: underline;
}

.upload-hint {
    font-size: 11px;
    color: #999;
    pointer-events: none;
}

/* Image preview area (shown after file is selected) */
.upload-preview {
    max-width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.upload-preview img {
    max-height: 130px;
    max-width: 100%;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
}

/* Remove button inside preview — needs pointer events */
.upload-preview .btn-remove-img {
    position: relative;
    z-index: 20;
    pointer-events: all;
}

/* ============================================================
   Form Error States
   ============================================================ */

.form-control.has-error {
    border-color: #d9534f !important;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075),
                0 0 8px rgba(217, 83, 79, .6) !important;
}

.error-msg {
    margin-bottom: 0px !important;
}

/* ============================================================
   Wizard Navigation Buttons
   ============================================================ */

/* Back / Previous button */
#btn-prev {
    background-color: #ffffff !important;
    color: #333333 !important;
    border: 2px solid #cccccc !important;
    padding: 10px 25px !important;
    font-weight: bold !important;
    display: inline-block !important;
    text-transform: uppercase !important;
    font-size: 13px !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    border-radius: 4px !important;
    min-width: 100px;
}

#btn-prev:hover {
    background-color: #fe7456 !important;
    color: #ffffff !important;
    border-color: #fe7456 !important;
}
