/* 
   Premium Form Styling for Contact Form 7
   Theme: Selective Singles Professional
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600&display=swap');

:root {
    --primary-gold: #E6A129;
    --light-gold: #F9D995;
    --accent-blue: #00A8FF;
    --bg-lavender: #F4F6FC;
    --text-dark: #2D3436;
    --text-muted: #636E72;
    --border-color: #E0E0E0;
    --glass-bg: rgba(255, 255, 255, 0.95);
}

body {
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
    font-family: 'Outfit', sans-serif;
    color: var(--text-dark);
    margin: 0;
    padding: 40px 20px;
    display: flex;
    justify-content: center;
}

.sf-form-container {
    max-width: 850px;
    width: 100%;
    background: var(--glass-bg);
    padding: 50px;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
}

/* Row & Column Layout */
.sf-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.sf-full-col {
    grid-column: span 2;
    margin-bottom: 24px;
}

.sf-col {
    display: flex;
    flex-direction: column;
}

/* Label Styling */
.sf-form-container label {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 10px;
    color: var(--text-dark);
    letter-spacing: 0.3px;
}

/* Input & Select Styling */
.wpcf7-form-control:not([type="submit"]):not([type="radio"]):not([type="checkbox"]) {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-lavender);
    font-size: 15px;
    font-family: inherit;
    color: var(--text-dark);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
}

.wpcf7-form-control:focus {
    border-color: var(--primary-gold);
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 4px rgba(230, 161, 41, 0.1);
}

/* International Tel Input Overrides */
.iti {
    width: 100%;
}

/* Fix for overlapping flag */
.iti input[type="tel"] {
    padding-left: 52px !important;
    /* Adjusted for separateDialCode */
}

.iti__flag-container {
    padding: 0 10px;
}

.iti__selected-flag {
    background-color: transparent !important;
    border-radius: 12px 0 0 12px;
}

.iti__country-list {
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    z-index: 9999;
}

/* Dropdown specific */
select.wpcf7-form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23636E72' 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 15px center;
    background-size: 18px;
    padding-right: 45px;
}

/* Section Headlines */
.sf-section h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 40px 0 20px;
    color: var(--text-dark);
    /* border-left: 4px solid var(--primary-gold); */
    padding-left: 0px;
}

/* Custom Radio Grid */
.sf-radio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

/* Radio Card Styling */
span.wpcf7-list-item {
    display: block !important;
    margin: 0 !important;
}

.wpcf7-list-item label {
    display: flex !important;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 18px 22px !important;
    cursor: pointer;
    background: #fff;
    transition: all 0.25s ease;
    margin: 0 !important;
    height: 100%;
    box-sizing: border-box;
}

.wpcf7-list-item input[type="radio"] {
    display: none;
}

/* Span holding the text and indicator */
.wpcf7-list-item label span {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Checkmark indicator (Permanent Circle) */
.wpcf7-list-item label span::after {
    content: '';
    width: 24px;
    height: 24px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin-left: 15px;
    box-sizing: border-box;
}

/* Selected State Box */
.wpcf7-list-item:has(input:checked) label {
    background: #F0F2FF;
    border-color: #3F51B5;
}

.wpcf7-list-item input:checked+span {
    color: var(--text-dark);
    font-weight: 600;
}

/* Filled Circle when checked */
.wpcf7-list-item input:checked+span::after {
    content: '✓';
    background: #3F51B5;
    border-color: #3F51B5;
    color: white;
    font-size: 12px;
}

.wpcf7-list-item:hover label {
    border-color: var(--primary-gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.wpcf7-list-item:has(input:checked) label {
    background: #F0F2FF;
    border-color: #3F51B5;
}

/* If the browser doesn't support :has (older ones) */
.wpcf7-list-item.is-selected label {
    background: #F0F2FF;
    border-color: #3F51B5;
}

/* Info Texts */
.sf-info-text {
    text-align: center;
    font-size: 14px;
    color: var(--accent-blue);
    margin: 25px 0;
    font-weight: 500;
}

.sf-info-text.blue {
    color: #4A90E2;
    font-style: italic;
}

/* Submit Button Wrap */
.sf-submit-wrap {
    text-align: center;
    margin: 50px 0 30px;
}

.wpcf7-submit {
    background: linear-gradient(135deg, var(--light-gold) 0%, var(--primary-gold) 100%) !important;
    border: none !important;
    color: #fff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    padding: 18px 60px !important;
    border-radius: 50px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(230, 161, 41, 0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.wpcf7-submit:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px rgba(230, 161, 41, 0.4);
}

/* Bottom Badges */
.sf-badges {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
    margin-top: 40px;
}

.sf-badge {
    background: #FFFBF2;
    padding: 20px;
    border-radius: 16px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    color: #8B6E30;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.sf-badge .icon {
    background: linear-gradient(135deg, #F4C462 0%, #E6A129 100%);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    box-shadow: 0 4px 10px rgba(230, 161, 41, 0.2);
    flex-shrink: 0;
}

/* Responsive Fixes */
@media (max-width: 768px) {

    .sf-row,
    .sf-radio-grid {
        grid-template-columns: 1fr;
    }

    .sf-full-col {
        grid-column: span 1;
    }

    .sf-badges {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .sf-form-container {
        padding: 30px 20px;
    }
}