/* ==========================================================================
   Register Page Styles
   ========================================================================== */

/* Direction */
body.direction-rtl {
    direction: rtl;
    text-align: right;
}

body.direction-ltr {
    direction: ltr;
    text-align: left;
}

/* CSS Variables */
:root {
    --Colors-Primary-500: #012626;
    --Colors-Neutral-1000: #333333;
    --Colors-Neutral-900: #4A4A4A;
    --Colors-Primary-400: #266F76;
    --Colors-Neutral-100: white;
    --Colors-Neutral-200: #E8E8E8;
}

/* ==========================================================================
   Package Cards
   ========================================================================== */
.package-price {
    color: var(--Colors-Neutral-1000);
    font-size: 26px;
    line-height: 52px;
}

.package-title {
    color: black;
    font-size: 28px;
    line-height: 52px;
}

.package-card {
    border: 1px solid var(--Colors-Neutral-200);
    border-radius: 16px;
    padding: 40px;
    transition: transform 0.3s ease;
}

.gradient-card {
    background: linear-gradient(90deg, #FEFEFE 0%, #F8FCF7 100%);
}

.feature-icon {
    width: 17px;
    height: 17px;
    background: var(--Colors-Primary-400);
    border-radius: 50%;
}

.cta-button {
    background: var(--Colors-Primary-400);
    color: var(--Colors-Neutral-100);
    padding: 14px 40px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 500;
    border: none;
}

.package-card-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    width: 100%;
    height: 180px;
    background-color: #f7fdfa;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.bg-shape {
    position: absolute;
    top: 0;
    width: 300px;
    height: 180px;
    background: #F6F8FF;
    z-index: 0;
    transition: all 0.3s ease;
}

html[lang="ar"] .bg-shape {
    left: 0;
    right: auto;
    border-bottom-right-radius: 50%;
    border-bottom-left-radius: 50%;
}

html[lang="en"] .bg-shape {
    right: 0;
    left: auto;
    border-bottom-right-radius: 50%;
    border-bottom-left-radius: 50%;
}

.header-section {
    position: relative;
    z-index: 1;
    padding-right: 3rem;
}

.main-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #2c2c2c;
    margin-bottom: 0.5rem !important;
}

.sub-title {
    font-size: 1rem;
    color: #5a5a5a;
}

.container-fluid.position-relative.overflow-hidden {
    width: 100%;
    height: 320px;
    position: relative;
    overflow: hidden;
}

/* ==========================================================================
   Form Controls
   ========================================================================== */
.input-group .form-control:not(:last-child) {
    border-right: 0;
    padding-right: 40px;
}

.form-control,
.form-select {
    border: none;
    border-bottom: 1px solid #ccc;
    border-radius: 0;
    background-color: transparent;
    box-shadow: none;
    padding: 15px 10px;
    font-size: .875rem;
    width: 100%;
    color: #999999;
}

.direction-rtl .form-control,
.direction-rtl .form-select {
    text-align: right;
}

.direction-ltr .form-control,
.direction-ltr .form-select {
    text-align: left;
}

.form-control::placeholder {
    color: #999;
    font-size: 14px;
}

.btn-primary {
    background-color: #176e6a;
    border-color: #176e6a;
    border-radius: 25px;
    padding: 10px 40px;
}

@media (min-width: 768px) {
    .w-md-25 {
        width: 25% !important;
    }
}

/* ==========================================================================
   Stepper
   ========================================================================== */
.stepper-wrapper {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 40px;
    flex-wrap: nowrap;
}

.stepper-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    gap: 10px;
    text-align: center;
}

.stepper-item::before {
    content: '';
    position: absolute;
    top: 22px;
    height: 2px;
    width: 100%;
    background: #ccc;
    z-index: 1;
}

.direction-rtl .stepper-item::before {
    right: -50%;
}

.direction-ltr .stepper-item::before {
    left: -50%;
}

.stepper-item:first-child::before {
    display: none;
}

.step-counter {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bi::before,
[class^="bi-"]::before,
[class*=" bi-"]::before {
    line-height: 3 !important;
}

.contact-details {
    background-color: #fff !important;
}

.step-counter .inner-dot {
    width: 16px;
    height: 16px;
    background-color: #176e6a;
    border-radius: 50%;
    display: none;
}

.stepper-item.active .step-counter .inner-dot {
    display: block;
}

.stepper-item .step-counter {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid #176e6a;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    color: #176e6a;
    font-weight: bold;
}

.stepper-item.completed .step-counter {
    background-color: #176e6a;
    color: white;
}

.stepper-item.active .step-counter {
    background-color: white;
    border: 1px solid #176e6a;
}

.stepper-item.completed .step-counter i {
    font-size: 25px;
}

.stepper-item p {
    margin: 0;
    font-size: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #333;
}

@media (max-width: 768px) {
    .stepper-item p {
        font-size: 10px;
        white-space: normal;
    }
}

/* ==========================================================================
   Form Steps
   ========================================================================== */
.form-step {
    display: none;
}

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

.text-end button {
    min-width: 120px;
}

/* ==========================================================================
   Password Toggle
   ========================================================================== */
.password-toggle-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    cursor: pointer;
    color: #999;
}

.direction-rtl .password-toggle-icon {
    left: 20px;
}

.direction-ltr .password-toggle-icon {
    right: 20px;
}

/* ==========================================================================
   Input Group & Package Select
   ========================================================================== */
.input-group-text {
    border: none;
    border-bottom: 1px solid #ccc;
}

.package-select {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    appearance: none;
    background-color: #fff;
    border: 2px solid #266F76;
    border-radius: 4px;
    cursor: pointer;
    outline: none;
}

.package-select:checked {
    background-color: #266F76;
    background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'><path d='M6.00039 10.8008L3.20039 8.00078L2.26606 8.93511L6.00039 12.6694L14.0004 4.66945L13.0661 3.73511L6.00039 10.8008Z'/></svg>");
    background-repeat: no-repeat;
    background-position: center;
}

/* ==========================================================================
   File Input
   ========================================================================== */
.custom-file-input {
    border: none !important;
    border-bottom: 1px solid red !important;
    background-color: transparent;
    border-radius: 0;
    box-shadow: none !important;
    padding: 10px 10px 10px 40px;
    font-size: .875rem;
    color: #999;
    height: 42px;
    line-height: 1.5;
    display: block;
    width: 100%;
}

.custom-file-input::file-selector-button {
    display: none;
}

.file-icon {
    position: absolute;
    font-size: 1.2rem;
    pointer-events: none;
    color: #999;
    top: 50%;
    transform: translateY(-50%) rotate(135deg);
}

.direction-rtl .file-icon {
    left: 10px;
}

.direction-ltr .file-icon {
    right: 10px;
}

.file-placeholder {
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: .875rem;
    color: #999;
    position: absolute;
    direction: ltr;
}

.direction-rtl .file-placeholder {
    right: 10px;
}

.direction-ltr .file-placeholder {
    left: 10px;
}

.form-select+i,
select+i {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #999;
}

.direction-rtl .form-select+i {
    left: 15px;
}

.direction-ltr .form-select+i {
    right: 15px;
}

/* ==========================================================================
   Validation & Error Styles
   ========================================================================== */
.invalid-feedback {
    display: none !important;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #dc3545;
    font-weight: 500;
}

.is-invalid {
    border-color: #dc3545 !important;
    border-width: 2px !important;
    background-color: #fff5f5 !important;
}

.is-invalid~.invalid-feedback {
    display: block !important;
}

@keyframes shake {
    0%,
    100% {
        transform: translateX(0);
    }
    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-5px);
    }
    20%,
    40%,
    60%,
    80% {
        transform: translateX(5px);
    }
}

.shake-animation {
    animation: shake 0.5s;
}

.is-valid {
    border-color: #28a745 !important;
}

.valid-feedback {
    display: block !important;
    color: #28a745;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    font-weight: 500;
}

/* Step indicator error state */
.stepper-item.has-error .step-counter {
    border-color: #dc3545 !important;
    border-width: 2px;
    background-color: #fff5f5 !important;
    animation: pulse-error 1.5s infinite;
}

.stepper-item.has-error .step-counter i {
    color: #dc3545 !important;
}

@keyframes pulse-error {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(220, 53, 69, 0);
    }
}

.error-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #dc3545;
    font-size: 1.2rem;
    pointer-events: none;
}

.direction-rtl .error-icon {
    left: 10px;
}

.direction-ltr .error-icon {
    right: 10px;
}

/* ==========================================================================
   Loading Spinner
   ========================================================================== */
.form-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.form-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #176e6a;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* ==========================================================================
   SweetAlert Custom
   ========================================================================== */
.swal-custom-confirm {
    background-color: #172b4d !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px;
}

.swal2-confirm.swal2-styled {
    background: #5603ad !important;
    color: #ffffff !important;
}

/* ==========================================================================
   Google Maps Custom
   ========================================================================== */
.gm-style .gm-style-cc,
.gm-style button[title="Toggle fullscreen view"],
.gm-style button[title="Rotate map 90 degrees"],
.gm-style .gm-fullscreen-control,
.gm-style .gmnoprint:not(.custom-location-btn) {
    display: none !important;
}

.custom-location-btn {
    bottom: 0 !important;
}

/* ==========================================================================
   Utility
   ========================================================================== */
.text-red {
    color: red;
}
