/* Beat Your Broker Form Styles - AssuraProtect Branding */

@font-face {
    font-family: 'OpenSans Light';
    src: url('https://cdn.assuraprotect.com/wp-content/uploads/et-fonts/OpenSans-Light-1.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "OpenSans Light", "Open Sans", Arial, sans-serif;
    background-color: #ffffff;
    min-height: 100vh;
    padding: 20px;
    color: #122c3f;
    font-weight: 300;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(18, 44, 63, 0.1);
    overflow: hidden;
    border: 1px solid #f2f2f2;
}

.header {
    background-color: #122c3f;
    color: #ffffff;
    padding: 40px 30px;
    text-align: center;
}

.header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    font-weight: 300;
    font-family: "OpenSans Light", "Open Sans", Arial, sans-serif;
}

.header p {
    font-size: 1.2em;
    opacity: 0.9;
    font-weight: 300;
}

.form-container {
    padding: 40px 30px;
    background-color: #ffffff;
}

.form-section {
    margin-bottom: 40px;
}

.form-section h2 {
    color: #122c3f;
    font-size: 1.8em;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 3px solid #425364;
    font-weight: 300;
}

.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 300;
    color: #122c3f;
    font-size: 1.1em;
}

.required {
    color: #e74c3c;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #f2f2f2;
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s ease;
    background-color: #ffffff;
    color: #122c3f;
    font-family: "OpenSans Light", "Open Sans", Arial, sans-serif;
    font-weight: 300;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #425364;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(66, 83, 100, 0.1);
}

.radio-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
}

.radio-option input[type="radio"] {
    width: auto;
    margin: 0;
}

.radio-option label {
    margin-bottom: 0;
    font-weight: 300;
    color: #122c3f;
}

.disclaimer {
    background-color: #f2f2f2;
    border-left: 4px solid #425364;
    padding: 20px;
    margin: 30px 0;
    border-radius: 0 8px 8px 0;
}

.disclaimer p {
    color: #122c3f;
    line-height: 1.6;
    font-size: 0.95em;
    font-weight: 300;
}

.submit-btn {
    background-color: #122c3f;
    color: #ffffff;
    border: none;
    padding: 18px 40px;
    font-size: 1.2em;
    font-weight: 300;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 20px;
    font-family: "OpenSans Light", "Open Sans", Arial, sans-serif;
}

.submit-btn:hover {
    background-color: #425364;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(18, 44, 63, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    background-color: #f2f2f2;
    color: #425364;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.thank-you {
    display: none;
    text-align: center;
    padding: 60px 30px;
    background-color: #ffffff;
}

.thank-you h2 {
    color: #122c3f;
    font-size: 2.5em;
    margin-bottom: 20px;
    font-weight: 300;
}

.thank-you p {
    color: #425364;
    font-size: 1.2em;
    line-height: 1.6;
    font-weight: 300;
}

.error-message {
    color: #e74c3c;
    font-size: 0.9em;
    margin-top: 5px;
    display: none;
    font-weight: 300;
}

.success-icon {
    font-size: 4em;
    color: #122c3f;
    margin-bottom: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        margin: 10px;
        border-radius: 8px;
    }
    
    .header {
        padding: 30px 20px;
    }
    
    .header h1 {
        font-size: 2em;
    }
    
    .form-container {
        padding: 30px 20px;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .header h1 {
        font-size: 1.8em;
    }
    
    .header p {
        font-size: 1em;
    }
    
    .form-section h2 {
        font-size: 1.5em;
    }
    
    .submit-btn {
        padding: 15px 30px;
        font-size: 1.1em;
    }
}

/* Form validation styles */
.form-group.error input,
.form-group.error select {
    border-color: #e74c3c;
}

.form-group.error .error-message {
    display: block;
}

.form-group.success input,
.form-group.success select {
    border-color: #425364;
}

/* Loading animation */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Accessibility improvements */
input:focus,
select:focus,
button:focus {
    outline: 2px solid #425364;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    body {
        background: white;
        padding: 0;
    }
    
    .container {
        box-shadow: none;
        border-radius: 0;
        border: 1px solid #f2f2f2;
    }
    
    .submit-btn {
        display: none;
    }
    
    .header {
        background-color: #122c3f !important;
        -webkit-print-color-adjust: exact;
        color-adjust: exact;
    }
}

/* Additional styling for better visual hierarchy */
.form-section:last-child {
    margin-bottom: 0;
}

/* Radio button styling */
input[type="radio"] {
    accent-color: #425364;
}

/* Select dropdown styling */
select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23425364' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
}

/* Hover effects for better interactivity */
input[type="text"]:hover,
input[type="email"]:hover,
input[type="tel"]:hover,
select:hover,
textarea:hover {
    border-color: #425364;
}

/* Placeholder styling */
input::placeholder,
textarea::placeholder {
    color: #425364;
    opacity: 0.7;
    font-weight: 300;
}
