/* ✅ ENHANCED: Portal Agency Booking Form - Complete Styles with Professional Phone Input */

.stepify-booking-wrapper * {
    box-sizing: border-box;
}

.stepify-booking-wrapper {
    font-family: 'Comfortaa', sans-serif;
    color: #1a1a1a;
    position: relative;
}

/* Welcome Screen */
.stepify-booking-wrapper .stepify-welcome-screen {
    animation: fadeIn 0.8s ease-out;
}

.stepify-booking-wrapper .floating-star-container {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
}

.stepify-booking-wrapper .floating-star {
    max-width: 200px !important;
    height: auto;
    animation: float-up-down 3s ease-in-out infinite;
    filter: drop-shadow(0 15px 35px rgba(0, 104, 255, 0.3));
}

@keyframes float-up-down {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    25% {
        transform: translateY(-20px) rotate(5deg);
    }

    75% {
        transform: translateY(-20px) rotate(-5deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.stepify-booking-wrapper .welcome-title {
    font-size: 64px;
    font-weight: 500;
    margin-bottom: 20px;
    color: #0068FF;
    line-height: 1.2;
}

.stepify-booking-wrapper .welcome-description {
    font-size: 64px;
    font-weight: 500;
    line-height: 1.2;
    color: #022644;
    max-width: 75%;
    margin-bottom: 25px !important;
}

@media screen and (max-width: 1023px) {
    .stepify-booking-wrapper .welcome-description {
        max-width: 100%;
    }
}

/* Progress Indicator */
.stepify-progress-container {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 20px 0;
    margin-bottom: 40px;
    border-radius: 12px;
}

.stepify-progress-bar {
    width: 100%;
    height: 6px;
    background: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 12px;
    position: relative;
}

.stepify-progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #0068ff 0%, #0050c7 100%);
    border-radius: 10px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.stepify-progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.progress-step {
    color: #666;
}

.progress-percent {
    color: #0068ff;
    font-weight: 600;
}

/* Form Container */
.stepify-booking-wrapper .stepify-form-step {
    display: none;
    opacity: 0;
}

.stepify-booking-wrapper .stepify-form-step.active {
    display: block;
    animation: slideUpFadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideUpFadeIn {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.stepify-booking-wrapper .step-title {
    font-size: 64px;
    color: #0068FF;
    margin-bottom: 30px;
    font-weight: 500;
    line-height: 1.2;
}

.stepify-booking-wrapper .step-description {
    color: #000;
    margin-bottom: 15px;
    font-size: 24px;
    line-height: 36px;
    font-weight: 300;
}

/* Input Fields */
.stepify-booking-wrapper .form-group-modern {
    margin-bottom: 50px;
    position: relative;
}

.stepify-booking-wrapper .form-group-modern label {
    display: block;
    font-size: 0.9rem;
    color: #0068ff;
    margin-bottom: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.stepify-booking-wrapper .form-group-modern input,
.stepify-booking-wrapper .form-group-modern textarea {
    width: 100%;
    padding: 20px 0;
    border: none;
    border-bottom: 2px solid rgba(0, 104, 255, 0.5);
    background: transparent;
    font-size: 20px;
    color: #1a1a1a;
    font-family: inherit;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 0;
    -webkit-box-shadow: 0 0 0 1000px transparent inset !important;
}

.stepify-booking-wrapper .form-group-modern input:focus,
.stepify-booking-wrapper .form-group-modern textarea:focus {
    outline: none;
    border-bottom-color: #0068ff;
    background-color: transparent !important;
    box-shadow: none !important;
    -webkit-box-shadow: 0 0 0 1000px transparent inset !important;
}

.stepify-booking-wrapper .form-group-modern input::placeholder,
.stepify-booking-wrapper .form-group-modern textarea::placeholder {
    color: rgba(0, 104, 255, 0.5);
    font-weight: 400;
    font-size: 20px;
}

.stepify-booking-wrapper .form-group-modern textarea {
    resize: vertical;
    min-height: 120px;
    padding: 15px 0;
    font-size: 1.2rem;
}

/* ✅ ENHANCED: Professional Phone Input Styling */
.stepify-booking-wrapper .phone-input-group {
    position: relative;
    margin-bottom: 50px;
}

/* Override intl-tel-input styles to match Portal Agency design */
.stepify-booking-wrapper .iti {
    width: 100%;
    display: block;
}

.stepify-booking-wrapper .iti__flag-container {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

.stepify-booking-wrapper .iti__selected-flag {
    padding: 0 10px 0 0;
    background: transparent;
    border: none;
    outline: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.stepify-booking-wrapper .iti__selected-flag:hover {
    background: transparent;
}

.stepify-booking-wrapper .iti__arrow {
    border-top-color: #0068ff;
    margin-left: 6px;
}

.stepify-booking-wrapper .iti__flag {
    width: 24px;
    height: 18px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-radius: 2px;
}

.stepify-booking-wrapper #phone {
    width: 100%;
    padding: 20px 0 20px 70px !important;
    border: none;
    border-bottom: 2px solid rgba(0, 104, 255, 0.5);
    background: transparent;
    font-size: 20px;
    color: #1a1a1a;
    font-family: 'Comfortaa', sans-serif;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 0;
    -webkit-box-shadow: 0 0 0 1000px transparent inset !important;
}

.stepify-booking-wrapper #phone:focus {
    outline: none;
    border-bottom-color: #0068ff;
    background: transparent !important;
    box-shadow: none !important;
    -webkit-box-shadow: 0 0 0 1000px transparent inset !important;
}

.stepify-booking-wrapper #phone::placeholder {
    color: rgba(0, 104, 255, 0.5);
    font-weight: 400;
    font-size: 20px;
}

/* Phone number validation error state */
.stepify-booking-wrapper .phone-input-group.error #phone {
    border-bottom-color: #ff4444;
    animation: shake 0.5s ease;
}

/* Dropdown country list styling */
.stepify-booking-wrapper .iti__country-list {
    max-height: 250px;
    overflow-y: auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid #e0e0e0;
    font-family: 'Comfortaa', sans-serif;
}

.stepify-booking-wrapper .iti__country {
    padding: 10px 15px;
    transition: background 0.2s ease;
}

.stepify-booking-wrapper .iti__country:hover {
    background: #f5f5f5;
}

.stepify-booking-wrapper .iti__highlight {
    background: #e3f2fd !important;
}

.stepify-booking-wrapper .iti__dial-code {
    color: #0068ff;
    font-weight: 600;
}

.stepify-booking-wrapper .iti__country-name {
    color: #1a1a1a;
    font-weight: 500;
}

/* Autofill Fix for Phone Input */
.stepify-booking-wrapper #phone:-webkit-autofill,
.stepify-booking-wrapper #phone:-webkit-autofill:hover,
.stepify-booking-wrapper #phone:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px transparent inset !important;
    box-shadow: 0 0 0 1000px transparent inset !important;
    -webkit-text-fill-color: #1a1a1a !important;
    transition: background-color 5000s ease-in-out 0s;
    caret-color: #1a1a1a;
}

/* Error States */
.stepify-booking-wrapper .error-message {
    color: #ff4444;
    font-size: 0.9rem;
    margin-top: 10px;
    display: none;
    font-weight: 600;
}

.stepify-booking-wrapper .form-group-modern.error input,
.stepify-booking-wrapper .form-group-modern.error textarea {
    border-bottom-color: #ff4444;
    animation: shake 0.5s ease;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-10px);
    }

    75% {
        transform: translateX(10px);
    }
}

/* Services Grid */
.stepify-booking-wrapper .services-grid {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 50px;
    margin-top: 40px;
}

.stepify-booking-wrapper .service-card {
    background: transparent;
    border: 1px solid #0068FF;
    padding: 12px 20px;
    border-radius: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

.stepify-booking-wrapper .service-card:hover {
    border-color: #0068ff;
    transform: translateY(-2px);
}

.stepify-booking-wrapper .service-card.selected {
    background: #0068ff;
    border-color: #0068ff;
    color: #fff;
    transform: translateY(-2px);
}

.stepify-booking-wrapper .service-card h4 {
    font-size: 16px;
    font-weight: 400;
    margin: 0 !important;
    color: #0068FF;
}

.stepify-booking-wrapper .service-card.selected h4,
.stepify-booking-wrapper .service-card.selected p {
    color: #fff;
}

/* Duration Cards */
.stepify-booking-wrapper .duration-options {
    display: flex;
    gap: 30px;
    margin-bottom: 50px;
    margin-top: 40px;
}

.stepify-booking-wrapper .duration-card {
    flex: 1;
    background: transparent;
    border: 1px solid #0068FF;
    padding: 20px;
    border-radius: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    max-width: 300px;
}

.stepify-booking-wrapper .duration-card:hover {
    border-color: #0068ff;
    transform: translateY(-2px);
}

.stepify-booking-wrapper .duration-card.selected {
    background: #0068ff;
    border-color: #0068ff;
    color: #fff;
    transform: translateY(-2px);
}

.stepify-booking-wrapper .duration-card h3 {
    font-size: 35px;
    font-weight: 700;
    color: #0068FF;
}

.stepify-booking-wrapper .duration-card.selected h3 {
    background: white;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stepify-booking-wrapper .duration-card p {
    font-size: 16px;
    color: #000;
    font-weight: 600;
    margin: 5px 0;
}

.stepify-booking-wrapper .duration-card.selected p,
.stepify-booking-wrapper .duration-card.selected span {
    color: #fff;
}

.stepify-booking-wrapper .duration-card span {
    font-size: 16px;
    color: #000;
}

/* Time Slots with Timezone Display */
.stepify-booking-wrapper .modern-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 30px;
}

.stepify-booking-wrapper .time-slot {
    padding: 16px 12px;
    border: 1px solid #0068FF;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: transparent;
    color: #212529;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stepify-booking-wrapper .time-slot .time-main {
    font-size: 1.1rem;
    font-weight: 400;
    color: #212529;
}

.stepify-booking-wrapper .time-slot .time-zone {
    font-size: 0.75rem;
    font-weight: 500;
    color: #212529;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stepify-booking-wrapper .time-slot:hover {
    border-color: #0068ff;
    transform: translateY(-2px);
}

.stepify-booking-wrapper .time-slot:hover .time-main,
.stepify-booking-wrapper .time-slot:hover .time-zone {
    color: #0068ff;
}

.stepify-booking-wrapper .time-slot.selected {
    background: #0068ff;
    color: white;
    border-color: #0068ff;
    transform: translateY(-2px);
}

.stepify-booking-wrapper .time-slot.selected .time-main,
.stepify-booking-wrapper .time-slot.selected .time-zone {
    color: white;
}

.stepify-booking-wrapper .slot-instruction {
    grid-column: 1 / -1;
    text-align: center;
    color: #999;
    padding: 40px;
    font-size: 1.05rem;
}

/* Date Input */
.stepify-booking-wrapper .date-input-wrapper input[type="date"] {
    padding: 18px 24px;
    border: 1px solid #0068FF;
    border-radius: 12px;
    font-size: 1.15rem;
    width: 100%;
    background: transparent;
    color: #212529;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    max-width: 400px;
}

.stepify-booking-wrapper .date-input-wrapper input[type="date"]:focus {
    border-color: #0068ff;
    background: white;
    box-shadow: 0 4px 15px rgba(0, 104, 255, 0.15);
}

/* Buttons */
.stepify-booking-wrapper .btn {
    padding: 15px 30px;
    font-size: 16px;
    border-radius: 50px;
    border: 1px solid #0068ff;
    cursor: pointer;
    font-weight: 400;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-family: inherit;
    overflow: hidden;
    background: transparent;
    color: #0068ff;
}

.stepify-booking-wrapper .btn:hover {
    background: #0068ff !important;
    color: #fff !important;
}

.stepify-booking-wrapper .btn:focus {
    background: #0068ff !important;
    color: #fff !important;
}

.stepify-booking-wrapper .btn-prev {
    background: transparent;
    border: 1px solid #0068ff;
    color: #0068ff;
    font-weight: 600;
}

.stepify-booking-wrapper .btn-prev:hover {
    color: #fff;
    background: #0068ff !important;
}

.stepify-booking-wrapper .form-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 60px;
}

/* Loading */
.stepify-booking-wrapper .stepify-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 999;
    background-color: #fff !important;
}

.stepify-booking-wrapper .spinner {
    width: 60px;
    height: 60px;
    border: 6px solid #e0e0e0;
    border-top: 6px solid #0068ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

.stepify-booking-wrapper .stepify-loading p {
    margin-top: 25px;
    font-size: 1.2rem;
    font-weight: 600;
    color: #0068ff;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .stepify-booking-wrapper {
        padding: 0;
    }

    .stepify-booking-wrapper .welcome-title {
        font-size: 40px;
    }

    .stepify-booking-wrapper .welcome-description {
        font-size: 40px;
    }

    .stepify-booking-wrapper .step-title {
        font-size: 2rem;
    }

    .stepify-booking-wrapper .form-group-modern input,
    .stepify-booking-wrapper .form-group-modern textarea {
        font-size: 1.2rem;
    }

    .stepify-booking-wrapper .services-grid {
        grid-template-columns: 1fr;
    }

    .stepify-booking-wrapper .duration-options {
        flex-direction: column;
    }

    .stepify-booking-wrapper #stepify-booking-form {
        padding: 0;
    }

    .stepify-booking-wrapper .modern-slots {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }

    .stepify-booking-wrapper .btn {
        width: fit-content;
        font-size: 14px;
        padding: 10px 25px;
    }

    .stepify-booking-wrapper .form-navigation {
        flex-direction: row;
        gap: 15px;
    }

    .stepify-progress-container {
        padding: 15px 0;
    }

    .stepify-progress-bar {
        height: 5px;
    }

    .stepify-progress-info {
        font-size: 0.85rem;
    }

    .stepify-booking-wrapper .time-slot {
        padding: 14px 10px;
    }

    .stepify-booking-wrapper .time-slot .time-main {
        font-size: 1rem;
    }

    .stepify-booking-wrapper .time-slot .time-zone {
        font-size: 0.7rem;
    }

    /* Mobile Phone Input */
    .stepify-booking-wrapper #phone {
        padding: 18px 0 18px 65px !important;
        font-size: 18px;
    }

    .stepify-booking-wrapper .iti__flag {
        width: 20px;
        height: 15px;
    }
}

/* Kill Chrome autofill background - All states */
.stepify-booking-wrapper input:-webkit-autofill,
.stepify-booking-wrapper input:-webkit-autofill:hover,
.stepify-booking-wrapper input:-webkit-autofill:focus,
.stepify-booking-wrapper input:-webkit-autofill:active {
    -webkit-background-clip: text;
    -webkit-text-fill-color: #1a1a1a !important;
    transition: background-color 5000s ease-in-out 0s;
    box-shadow: inset 0 0 20px 20px transparent !important;
    background-color: transparent !important;
    caret-color: #1a1a1a;
}

/* Firefox autofill */
.stepify-booking-wrapper input:-moz-autofill,
.stepify-booking-wrapper input:-moz-autofill-preview {
    filter: none;
    background-color: transparent !important;
}

/* Internal autofill states */
.stepify-booking-wrapper input:-internal-autofill-selected {
    background-color: transparent !important;
    background-image: none !important;
    color: #1a1a1a !important;
}