/* ========================================
   AUTHENTICATION PAGES CSS
   (signup_customer.php & signin_customer.php)
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', Poppins;
    background: #f8f9fa;
    min-height: 100vh;
}

/* ========================================
   NAVBAR STYLES
   ======================================== */
.navbar {
    background-color: #04C9FF;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 12px 0;
    position: relative;
    z-index: 1000;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    transition: transform 0.3s ease;
}

.navbar-brand:hover {
    color: #1a1a1a;
}

/* ========================================
   MAIN CONTAINER & CARD
   ======================================== */
.main-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 80px);
    position: relative;
    z-index: 1;
    padding: 20px 20px;
}

.card {
    border: none;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    max-width: 480px;
    width: 100%;
    transition: transform 0.3s ease;
    background: white;
    position: relative;
    z-index: 2;
}

.card:hover {
    transform: translateY(-5px);
}

.card-body {
    padding: 2.5rem;
}

/* ========================================
   STEP PROGRESS INDICATOR
   ======================================== */
.step-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    position: relative;
    padding: 0 10px;
}

.step-progress::before {
    content: '';
    position: absolute;
    top: 24px;
    left: 10%;
    right: 10%;
    height: 3px;
    background: #e0e0e0;
    z-index: 0;
}

.step-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #f0f0f0;
    border: 2px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    color: #999;
    position: relative;
    z-index: 1;
    background: white;
    transition: all 0.3s ease;
}

.step-circle.active {
    background: #04C9FF;
    border-color: #04C9FF;
    color: white;
    box-shadow: 0 0 0 3px rgba(78, 213, 250, 0.3);
}

.step-circle.completed {
    background: #06c167;
    border-color: #06c167;
    color: white;
}

.step-label {
    font-size: 0.7rem;
    font-weight: 600;
    margin-top: 8px;
    color: #666;
    text-align: center;
}

.step-item {
    text-align: center;
    flex: 1;
}

.step-item.active .step-label {
    color: #04C9FF;
    font-weight: 700;
}

/* ========================================
   STEP CONTENT
   ======================================== */
.step-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.step-content.active-step {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========================================
   FORM STYLES
   ======================================== */
.form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.input-group-custom {
    position: relative;
    z-index: 10;
}

.input-group-custom i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    z-index: 10;
}

.form-control-custom {
    width: 100%;
    padding: 12px 15px 12px 45px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.form-control-custom:focus {
    border-color: #04C9FF;
    outline: none;
    box-shadow: 0 0 0 3px rgba(78, 213, 250, 0.2);
}

/* ========================================
   OTP BOXES
   ======================================== */
.otp-container {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin: 25px 0;
}

.otp-box {
    width: 55px;
    height: 65px;
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    background: white;
    transition: all 0.2s;
}

.otp-box:focus {
    border-color: #04C9FF;
    outline: none;
    box-shadow: 0 0 0 3px rgba(78, 213, 250, 0.2);
}

/* ========================================
   BUTTONS
   ======================================== */
.btn-primary-custom {
    background-color: #04C9FF;
    border: none;
    color: white;
    padding: 12px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    width: 100%;
    transition: all 0.3s ease;
}

.btn-primary-custom:hover {
    background-color: #04C9FF;
    transform: translateY(-2px);
}

.btn-outline-custom {
    display: grid;
    grid-template-columns: 30px 1fr;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    text-align: left;
    border: 2px solid #04C9FF;
    background: white;
    font-size: 15px;
    font-weight: 500;
    border-radius: 12px;
    width: 100%;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    margin-top: 2%;
}

.btn-outline-custom:hover {
    background: #04C9FF;
    color: white;
    transform: translateY(-2px);
}

.btn-success-custom {
    background-color: #04C9FF;
    border: none;
    color: white;
    padding: 12px;
    font-weight: 600;
    border-radius: 12px;
    width: 100%;
}

.btn-success-custom:hover {
    background: #04C9FF;
    transform: translateY(-2px);
}

/* ========================================
   DIVIDER
   ======================================== */
.divider {
    text-align: center;
    margin: 10px 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e0e0e0;
}

.divider span {
    background: white;
    padding: 0 15px;
    position: relative;
    color: #666;
    font-size: 14px;
}

/* ========================================
   ALERT MESSAGE
   ======================================== */
.alert-custom {
    border-radius: 12px;
    font-size: 14px;
    padding: 12px;
    margin-bottom: 20px;
    display: none;
}

.alert-custom.show {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========================================
   MAP & POSTCODE SUGGESTIONS
   ======================================== */
#locationMap {
    height: 250px;
    border-radius: 12px;
    margin: 15px 0;
    border: 2px solid #e0e0e0;
    z-index: 1;
}

.postcode-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.postcode-suggestion-item {
    padding: 10px 15px;
    cursor: pointer;
    transition: background 0.2s;
    z-index: 1001;
    position: relative;
    background: white;
}

.postcode-suggestion-item:hover {
    background: #f0f0f0;
}

/* ========================================
   CONGRATULATIONS MODAL
   ======================================== */
.congrats-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.congrats-content {
    background: white;
    border-radius: 24px;
    padding: 40px 30px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    animation: slideUp 0.4s ease;
}

.congrats-icon {
    width: 80px;
    height: 80px;
    background: #04C9FF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.congrats-icon i {
    font-size: 45px;
    color: white;
}

.congrats-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.congrats-message-text {
    font-size: 16px;
    color: #555;
    margin-bottom: 8px;
}

.congrats-subtext {
    font-size: 14px;
    color: #888;
    margin-bottom: 25px;
}

.congrats-btn {
    background: #04C9FF;
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.congrats-btn:hover {
    background: #04C9FF;
    transform: translateY(-2px);
}

/* ========================================
   ALREADY REGISTERED MODAL
   ======================================== */
.already-registered-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.modal-content-custom {
    background: white;
    border-radius: 20px;
    padding: 30px 25px;
    text-align: center;
    max-width: 380px;
    width: 90%;
    animation: slideUp 0.4s ease;
}

.modal-icon {
    width: 70px;
    height: 70px;
    background: #ff6b35;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.modal-icon i {
    font-size: 35px;
    color: white;
}

.modal-title-custom {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.modal-message {
    font-size: 15px;
    color: #555;
    margin-bottom: 8px;
    line-height: 1.5;
}

.modal-subtext {
    font-size: 14px;
    color: #888;
    margin-bottom: 25px;
}

.modal-buttons {
    display: flex;
    gap: 12px;
}

.modal-btn {
    flex: 1;
    padding: 12px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.signin-btn {
    background: #04C9FF;
    color: white;
}

.signin-btn:hover {
    background: #04C9FF;
    transform: translateY(-2px);
}

.close-btn {
    background: #f0f0f0;
    color: #333;
}

.close-btn:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
}

/* ========================================
   ICON STYLES
   ======================================== */
.icon-lg {
    height: 35px;
}

.btn-outline-custom .btn-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-left: 20px;
}

.btn-outline-custom .btn-text {
    text-align: center;
    margin-right: 30px;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
.custom-heading {
    font-size: 26px;
    font-weight: 700;
    line-height: 19.68px;
}

.terms-text {
    font-size: 14px;
    color: #666;
    text-align: center;
    margin-top: 20px;
    line-height: 1.5;
}

.terms-text a {
    color: #04C9FF;
    text-decoration: none;
    font-weight: 500;
}

.terms-text a:hover {
    text-decoration: underline;
}

.signup-link {
    text-align: center;
    margin-top: auto;
    font-size: 14px;
    color: #666;
}

.signup-link a {
    color: #04C9FF;
    text-decoration: none;
    font-weight: 600;
}

.signup-link a:hover {
    text-decoration: underline;
}

.congrats-message {
    text-align: center;
    padding: 7px;
    border-radius: 16px;
}

/* ========================================
   NAVIGATION BUTTONS
   ======================================== */
.navigation-buttons {
    display: flex;
    gap: 12px;
    margin-top: 25px;
}

.navigation-buttons button {
    flex: 1;
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* ========================================
   LOADING STATE
   ======================================== */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 768px) {
    .btn-outline-custom .btn-icon {
        margin-left: 0px;
    }
}

@media (max-width: 576px) {
    .card-body {
        padding: 1.5rem;
    }
    
    .otp-box {
        width: 45px;
        height: 55px;
        font-size: 24px;
    }
    
    .step-circle {
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
    }
    
    .step-label {
        font-size: 0.6rem;
    }
    
    .custom-heading {
        font-size: 24px;
    }
}