.phono1-form-wrapper {
    background: #0a0a0a;
    padding: 48px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
    color: #f5f5f5;
    font-family: 'Inter', sans-serif;
    max-width: 850px;
    margin: 0 auto;
}

.phono1-form-header {
    margin-bottom: 40px;
    text-align: center;
}

.phono1-form-header h2 {
    color: #c9a05b;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 400;
    margin-bottom: 12px;
}

.phono1-form-header p {
    color: #888;
    font-size: 0.95rem;
    line-height: 1.5;
}

.modern-premium-form .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px 24px;
    margin-bottom: 32px;
}

.modern-premium-form .form-group {
    display: flex;
    flex-direction: column;
    position: relative;
}

.modern-premium-form .form-group.full-width {
    grid-column: 1 / -1;
    margin-bottom: 32px;
}

.modern-premium-form label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
    color: #999;
    font-weight: 500;
}

.modern-premium-form input,
.modern-premium-form select {
    background: #121212;
    border: 1px solid #2a2a2a;
    color: #fff;
    padding: 16px 20px;
    font-size: 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    width: 100%;
    appearance: none;
}

.select-wrapper {
    position: relative;
}

.select-wrapper::after {
    content: '▼';
    font-size: 0.7rem;
    color: #888;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.modern-premium-form input:focus,
.modern-premium-form select:focus {
    outline: none;
    border-color: #c9a05b;
    background: #161616;
    box-shadow: 0 0 0 1px #c9a05b;
}

.submit-wrapper {
    margin-top: 10px;
}

.premium-submit-btn {
    background: #c9a05b;
    color: #050505;
    padding: 18px 32px;
    border: none;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s ease;
    width: 100%;
    box-shadow: 0 4px 15px rgba(201, 160, 91, 0.15);
}

.premium-submit-btn:hover {
    background: #e6b869;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(201, 160, 91, 0.25);
}

#phono1-form-response {
    margin-top: 20px;
    font-size: 0.95rem;
    text-align: center;
    min-height: 24px;
}

@media (max-width: 768px) {
    .phono1-form-wrapper {
        padding: 32px 24px;
    }
    .modern-premium-form .form-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* Fix text color during active typing and input */
.modern-premium-form input,
.modern-premium-form select {
    color: #ffffff !important;
}

/* Fix browser autofill dark mode override (Chrome / Safari / Edge) */
.modern-premium-form input:-webkit-autofill,
.modern-premium-form input:-webkit-autofill:hover, 
.modern-premium-form input:-webkit-autofill:focus,
.modern-premium-form input:-webkit-autofill:active {
    -webkit-text-fill-color: #ffffff !important;
    -webkit-box-shadow: 0 0 0px 1000px #121212 inset !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* Fix dropdown select menu option background and text */
.modern-premium-form select option {
    background-color: #121212;
    color: #ffffff;
}

/* Container for AJAX Response Messages */
#phono1-form-response {
    font-size: 16px !important; /* Increase font size */
    line-height: 1.5;
    font-weight: 600;
    margin-top: 15px;
    padding: 12px 16px;
    border-radius: 4px;
}

/* Error Notification Styling */
#phono1-form-response.error {
    color: #e57373;
    background-color: rgba(229, 115, 115, 0.1);
    border: 1px solid rgba(229, 115, 115, 0.3);
}

/* Success Notification Styling */
#phono1-form-response.success {
    color: #81c784;
    background-color: rgba(129, 199, 132, 0.1);
    border: 1px solid rgba(129, 199, 132, 0.3);
}

/* ==========================================================================
   RESPONSIVE & SCALABILITY OVERRIDES FOR PHONO-1 UPGRADE FORM
   ========================================================================== */

/* Ensure box-sizing applies globally across form elements */
.phono1-form-wrapper,
.phono1-form-wrapper *,
.phono1-form-wrapper *::before,
.phono1-form-wrapper *::after {
    box-sizing: border-box;
}

/* Make container flexible and fill parent columns properly */
.phono1-form-wrapper {
    width: 100%;
    height: 100%; /* Keeps heights equalized in Elementor columns */
}

/* Smooth scaling for inputs and select wrappers */
.modern-premium-form .form-group {
    width: 100%;
}

.modern-premium-form input,
.modern-premium-form select {
    max-width: 100%;
}

/* --- TABLET BREAKPOINT (max-width: 1024px) --- */
@media (max-width: 1024px) {
    .phono1-form-wrapper {
        padding: 36px 28px;
    }

    .modern-premium-form .form-grid {
        gap: 20px 16px;
    }
}

/* --- MOBILE BREAKPOINT (max-width: 768px) --- */
@media (max-width: 768px) {
    .phono1-form-wrapper {
        padding: 24px 18px;
        border-radius: 8px;
    }

    .phono1-form-header {
        margin-bottom: 24px;
    }

    .phono1-form-header h2 {
        font-size: 1.25rem;
        letter-spacing: 1.5px;
    }

    .phono1-form-header p {
        font-size: 0.85rem;
    }

    /* Force all grid rows into a single fluid column */
    .modern-premium-form .form-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 20px;
    }

    .modern-premium-form .form-group.full-width {
        margin-bottom: 0; /* Align with standard group spacing */
    }

    /* Optimize touch targets for mobile devices */
    .modern-premium-form input,
    .modern-premium-form select {
        padding: 14px 16px;
        font-size: 16px !important; /* Prevents iOS Safari auto-zoom on input focus */
        height: 48px;
    }

    .select-wrapper::after {
        right: 16px;
    }

    .premium-submit-btn {
        padding: 16px 20px;
        font-size: 0.85rem;
        letter-spacing: 1px;
    }
}

/* --- EXTRA SMALL MOBILE BREAKPOINT (max-width: 480px) --- */
@media (max-width: 480px) {
    .phono1-form-wrapper {
        padding: 20px 14px;
    }
    
    .phono1-form-header h2 {
        font-size: 1.1rem;
    }
}

/* Submission Confirmation Modal Overlay */
.phono1-modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.85) !important;
    backdrop-filter: blur(5px) !important;
    -webkit-backdrop-filter: blur(5px) !important;
    display: none;
    align-items: center !important;
    justify-content: center !important;
    z-index: 9999999 !important;
    box-sizing: border-box !important;
}

/* Modal Card Container */
.phono1-modal-card {
    background-color: #121212 !important;
    border: 1px solid #2a2a2a !important;
    border-top: 3px solid #c9a05b !important;
    border-radius: 8px !important;
    padding: 35px 30px !important;
    max-width: 480px !important;
    width: 90% !important;
    text-align: center !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.9) !important;
    font-family: Arial, sans-serif !important;
    color: #cccccc !important;
    box-sizing: border-box !important;
    margin: 0 auto !important;
}

/* Checkmark Icon */
.phono1-modal-icon {
    width: 50px !important;
    height: 50px !important;
    line-height: 50px !important;
    border-radius: 50% !important;
    background-color: rgba(46, 204, 113, 0.15) !important;
    color: #2ecc71 !important;
    font-size: 26px !important;
    font-weight: bold !important;
    margin: 0 auto 18px auto !important;
    border: 1px solid #2ecc71 !important;
    display: block !important;
}

/* Modal Heading */
.phono1-modal-title {
    color: #ffffff !important;
    font-size: 18px !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    margin: 0 0 12px 0 !important;
    font-weight: 700 !important;
}

/* Modal Body */
.phono1-modal-body {
    font-size: 14px !important;
    line-height: 1.6 !important;
    color: #cccccc !important;
    margin: 0 0 16px 0 !important;
}

/* Junk Mail Callout */
.phono1-modal-notice {
    font-size: 13px !important;
    color: #999999 !important;
    background: #181818 !important;
    border-radius: 4px !important;
    padding: 12px !important;
    margin: 0 0 24px 0 !important;
    border: 1px solid #222222 !important;
    line-height: 1.5 !important;
    text-align: center !important;
}

.phono1-modal-notice strong {
    color: #c9a05b !important;
}

/* Action Button */
.phono1-modal-btn {
    background-color: #c9a05b !important;
    color: #0a0a0a !important;
    border: none !important;
    padding: 14px 24px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    transition: background 0.2s ease !important;
    width: 100% !important;
    display: block !important;
}

.phono1-modal-btn:hover {
    background-color: #d8b26e !important;
}