/* ========================================================================= */
/* ============= FINAL PRESTIGE WIDGET STYLES (DEFINITIVE) ================= */
/* ========================================================================= */
:root {
    --prestige-dark-blue: #1a2a3a;
    --prestige-dark-slate: #2c3e50;
    --prestige-gold: #DAA520;
    --prestige-light-gold: #f1d27a;
    --prestige-bg: linear-gradient(180deg, #FFFFFF 0%, #F7F9FC 100%);
    --prestige-text-dark: #212529;
    --prestige-text-muted: #6c757d;
    --prestige-shadow: 0 15px 45px rgba(30, 45, 60, 0.2);
    --prestige-transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.prestige-widget-container {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 1000;
}

/* --- The Elegant Floating Button --- */
.prestige-floating-btn {
    position: relative;
    width: 60px;
    height: 60px;
    background: var(--prestige-dark-blue);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(26, 42, 58, 0.3);
    transition: var(--prestige-transition);
    overflow: hidden;
}
.prestige-floating-btn:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 0 35px rgba(218, 165, 32, 0.5);
}
.prestige-btn-shimmer {
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: conic-gradient(transparent, rgba(241, 210, 122, 0.2), transparent 35%);
    animation: rotate 4s linear infinite;
}
@keyframes rotate { 100% { transform: rotate(360deg); } }

.prestige-floating-btn .icon-open,
.prestige-floating-btn .icon-close {
    font-size: 24px;
    color: var(--prestige-gold);
    transition: var(--prestige-transition);
    position: absolute;
}
.prestige-floating-btn .icon-close { transform: rotate(-90deg) scale(0.5); opacity: 0; }
.prestige-widget-container.active .icon-open { transform: rotate(90deg) scale(0.5); opacity: 0; }
.prestige-widget-container.active .icon-close { transform: rotate(0deg) scale(1); opacity: 1; }

/* --- The Professional Animated Form --- */
.prestige-form-wrapper {
    position: absolute;
    bottom: 85px;
    right: 0;
    width: 340px;
    background: var(--prestige-bg);
    border-radius: 16px;
    box-shadow: var(--prestige-shadow);
    overflow: hidden;
    transform-origin: bottom right;
    transition: var(--prestige-transition);
    transform: translateY(30px) scale(0.9);
    opacity: 0;
    visibility: hidden;
}
.prestige-widget-container.active .prestige-form-wrapper {
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
}
.prestige-header {
    padding: 20px 25px;
    background: var(--prestige-dark-blue);
    color: #fff;
    text-align: center;
    border-bottom: 3px solid var(--prestige-gold);
}
.prestige-header h3 { margin: 0 0 5px; font-size: 1.2rem; font-weight: 600; }
.prestige-header p { margin: 0; font-size: 0.9rem; opacity: 0.8; }
#prestige-form { padding: 30px 25px 25px; }

/* --- Animated Input Fields --- */
.prestige-form-group { position: relative; margin-bottom: 30px; }
.prestige-form-group input, .prestige-form-group textarea {
    width: 100%;
    padding: 10px 5px;
    border: none;
    border-bottom: 2px solid #dde2e7;
    background: transparent;
    color: var(--prestige-text-dark);
    font-size: 1rem;
    transition: border-color 0.3s;
    resize: none;
}
.prestige-form-group input:focus, .prestige-form-group textarea:focus {
    outline: none;
    border-bottom-color: var(--prestige-gold);
}
.prestige-form-group label {
    position: absolute;
    top: 10px;
    left: 5px;
    color: var(--prestige-text-muted);
    font-size: 1rem;
    pointer-events: none;
    transition: all 0.3s ease;
}
.prestige-form-group input:focus + label,
.prestige-form-group textarea:focus + label,
.prestige-form-group input:not(:placeholder-shown) + label,
.prestige-form-group textarea:not(:placeholder-shown) + label {
    top: -16px;
    font-size: 0.8rem;
    color: var(--prestige-gold);
}


/* --- THE DEFINITIVE, FLAWLESS PHONE INPUT STYLING --- */
.iti { position: relative; width: 100%; }
.iti input#prestige-phone {
    width: 100%;
    height: 38px;
    border: none;
    border-bottom: 2px solid #dde2e7;
    transition: border-color 0.3s;
}
.iti input#prestige-phone:focus {
    outline: none;
    border-bottom-color: var(--prestige-gold);
}
.iti input#prestige-phone:focus + label {
    top: -16px !important;
    font-size: 0.8rem !important;
    color: var(--prestige-gold) !important;
}

/* The NEW, REDESIGNED COUNTRY DROPDOWN */
.iti__country-list {
    background-color: #fff;
    border: none;
    box-shadow: 0 15px 50px rgba(30, 45, 60, 0.25);
    border-radius: 12px;
    padding: 8px;
    max-height: 220px;
    max-width: 300px;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
    /* NEW: Add a margin to prevent touching the screen edge */
    margin: 5px;
    scrollbar-width: thin;
    scrollbar-color: var(--prestige-gold) #f1f1f1;
}

/* The New, Dynamic, Custom Scrollbar */
.iti__country-list::-webkit-scrollbar { width: 10px; }
.iti__country-list::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 10px; }
.iti__country-list::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
    border: 3px solid #f1f1f1;
    transition: background 0.2s ease-in-out;
}
.iti__country-list::-webkit-scrollbar-thumb:hover { background: var(--prestige-gold); }

/* Individual Country Item Styling */
.iti__country {
    padding: 10px 12px !important;
    border-radius: 8px;
    transition: all 0.2s ease-in-out;
    /* NEW: Prevent long names from breaking into two lines */
    white-space: nowrap;
}

/* New, Dynamic Hover Effect */
.iti__country:hover {
    background-color: #f7f7f7 !important;
    transform: translateX(5px);
}

/* THE DEFINITIVE FIX FOR THE SHARP EDGES & A MORE PROFESSIONAL LOOK */
.iti__country.iti__highlight {
    background: linear-gradient(90deg, var(--prestige-dark-slate), var(--prestige-dark-blue)) !important;
    color: #fff !important;
    /* OLD: transform: scale(1.05); <<< THIS WAS THE BUG */
    /* NEW: Use a more sophisticated shadow for the "lift" effect without scaling */
    box-shadow: 0 8px 20px rgba(30, 45, 60, 0.3);
    transform: translateY(-2px); /* A subtle lift that doesn't break overflow */
}
.iti__country.iti__highlight .iti__dial-code { color: var(--prestige-light-gold) !important; }


/* --- Animated Submit Button --- */
.prestige-submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(45deg, var(--prestige-gold), var(--prestige-light-gold));
    color: var(--prestige-dark-blue);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}
.prestige-submit-btn:hover {
    box-shadow: 0 8px 20px rgba(218, 165, 32, 0.4);
    transform: translateY(-3px);
}
.prestige-submit-btn:active { transform: translateY(-1px); }