/* Check Availability Widget Styles */

.theloge-check-availability-widget {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theloge-check-availability-container {
    width: 100%;
    max-width: 800px;
}

.theloge-check-availability-content {
    background: #ffffff;
    border-radius: 20px;
    padding: 50px 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.theloge-check-availability-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a2a3a;
    margin: 0 0 20px 0;
    line-height: 1.2;
}

.theloge-check-availability-description {
    font-size: 16px;
    color: #8b9aaa;
    line-height: 1.6;
    margin: 0 0 40px 0;
}

.theloge-check-availability-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.theloge-form-group {
    width: 100%;
}

.theloge-region-select {
    width: 100%;
    padding: 12px 40px 12px 16px;
    height: 48px;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s;
    color: #262626;
    background-color: #ffffff;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
}

.theloge-region-select:hover {
    border-color: #b8935e;
}

.theloge-region-select:focus {
    outline: none;
    border-color: #b8935e;
}

.theloge-check-availability-btn {
    width: 100%;
    padding: 16px 30px;
    background: linear-gradient(135deg, #d4a574 0%, #c89456 100%);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: capitalize;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.theloge-check-availability-btn:hover {
    background: linear-gradient(135deg, #c89456 0%, #b8843a 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 165, 116, 0.3);
}

.theloge-check-availability-btn:active {
    transform: translateY(0);
}

.theloge-btn-icon {
    font-size: 18px;
    display: inline-block;
}

/* Responsive Design */
@media (max-width: 768px) {
    .theloge-check-availability-widget {
        padding: 30px 15px;
        min-height: auto;
    }

    .theloge-check-availability-content {
        padding: 30px 20px;
    }

    .theloge-check-availability-title {
        font-size: 24px;
    }

    .theloge-check-availability-description {
        font-size: 14px;
    }

    .theloge-region-select,
    .theloge-check-availability-btn {
        padding: 14px 16px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .theloge-check-availability-widget {
        padding: 20px 10px;
    }

    .theloge-check-availability-content {
        padding: 20px 15px;
        border-radius: 15px;
    }

    .theloge-check-availability-title {
        font-size: 20px;
    }

    .theloge-check-availability-description {
        font-size: 13px;
        margin-bottom: 30px;
    }
}

/* Modal Styles */
.theloge-check-availability-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    animation: fadeIn 0.3s ease-in-out;
}

.theloge-check-availability-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    animation: slideUp 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translate(-50%, -40%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.theloge-check-availability-modal-content {
    background: white;
    border-radius: 20px;
    width: 45vw;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Modal Header */
.theloge-check-availability-modal-header {
    padding: 30px 40px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.theloge-check-availability-modal-header h2 {
    font-size: 24px;
    line-height: 32px;
    font-weight: 500;
    font-family: "Supreme", Sans-serif;
    color: #171A26;
    margin: 0;
    flex: 1;
    text-align: left;
}

.theloge-check-availability-modal-close {
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
    flex-shrink: 0;
}

.theloge-check-availability-modal-close:hover {
    color: #333;
}

/* Modal Body */
.theloge-check-availability-modal-body {
    padding: 60px 40px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.theloge-check-availability-modal-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.theloge-check-availability-modal-body h2 {
    font-size: 24px;
    line-height: 32px;
    font-family: "Supreme", Sans-serif;
    font-weight: 500;
    color: #171A26;
    margin: 0 0 20px 0;
}

.theloge-check-availability-modal-body p {
    font-size: 16px;
    line-height: 24px;
    font-family: "Supreme", Sans-serif;
    color: #2F4361;
    margin: 0 0 30px 0;
}

.theloge-check-availability-modal-form-group {
    width: 100%;
    margin-top: 20px;
}

.theloge-check-availability-modal-email-input {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
    color: #666;
}

.theloge-check-availability-modal-email-input::placeholder {
    color: #999;
}

.theloge-check-availability-modal-email-input:focus {
    outline: none;
    border-color: #d4a574;
    box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.1);
}

/* Modal Footer */
.theloge-check-availability-modal-footer {
    padding: 30px 40px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    gap: 16px;
    justify-content: flex-end;
    align-items: center;
}

.theloge-check-availability-modal-btn-cancel,
.theloge-check-availability-modal-btn-primary {
    padding: 14px 36px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: inherit;
    white-space: nowrap;
    display: inline-block;
    text-decoration: none;
    text-align: center;
}

.theloge-check-availability-modal-btn-cancel {
    background-color: white;
    color: #69686D;
    border: 2px solid #D1D0D2;
    padding: 12px 16px;
    font-size: 14px;
    line-height: 20px;
}

.theloge-check-availability-modal-btn-primary {
    background-color: #CF9D42;
    color: white;
    min-width: 200px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    text-transform: uppercase;
    border-radius: 6px;
}

.theloge-check-availability-modal-btn-primary:hover {
    background-color: #a37f4d;
    transform: none;
    box-shadow: none;
    text-decoration: none;
    color: white;
}

/* Modal Responsive Design */
@media (max-width: 768px) {
    .theloge-check-availability-modal-header {
        padding: 24px 24px;
    }

    .theloge-check-availability-modal-header h2 {
        font-size: 22px;
    }

    .theloge-check-availability-modal-body {
        padding: 40px 24px;
    }

    .theloge-check-availability-modal-body h3 {
        font-size: 18px;
    }

    .theloge-check-availability-modal-body p {
        font-size: 14px;
    }

    .theloge-check-availability-modal-footer {
        padding: 24px 24px;
        flex-direction: row;
        gap: 12px;
    }

    .theloge-check-availability-modal-btn-cancel,
    .theloge-check-availability-modal-btn-primary {
        padding: 12px 24px;
        font-size: 14px;
        min-width: auto;
        flex: 1;
    }
}

@media (max-width: 480px) {
    .theloge-check-availability-modal-content {
        width: 95vw;
        border-radius: 16px;
    }

    .theloge-check-availability-modal-header {
        padding: 20px 20px;
        flex-direction: column;
        align-items: flex-start;
    }

    .theloge-check-availability-modal-header h2 {
        font-size: 20px;
        text-align: center;
        width: 100%;
    }

    .theloge-check-availability-modal-close {
        position: absolute;
        top: 16px;
        right: 16px;
    }

    .theloge-check-availability-modal-body {
        padding: 30px 20px;
    }

    .theloge-check-availability-modal-icon {
        margin-bottom: 30px;
    }

    .theloge-check-availability-modal-icon svg {
        width: 100px !important;
        height: 100px !important;
    }

    .theloge-check-availability-modal-body h3 {
        font-size: 16px;
    }

    .theloge-check-availability-modal-body p {
        font-size: 13px;
    }

    .theloge-check-availability-modal-footer {
        padding: 20px 20px;
        flex-direction: column;
        gap: 10px;
    }

    .theloge-check-availability-modal-btn-cancel,
    .theloge-check-availability-modal-btn-primary {
        width: 100%;
        padding: 12px 20px;
        font-size: 13px;
    }
}

/* Loader Styles */
.theloge-check-availability-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9998;
}

.theloge-loader-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top: 5px solid #d4a574;
    border-radius: 50%;
    animation: theloge-spin 1s linear infinite;
}

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