/* Global Styles */
body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: #333;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #1a237e;
    box-shadow: 0 0 0 0.2rem rgba(26, 35, 126, 0.25);
}

/* Form Validation */
.form-group input.invalid,
.form-group select.invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.form-group input:required,
.form-group select:required {
    border-left: 3px solid #1a237e;
}

/* Form Navigation */
.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    padding: 1rem 0;
    border-top: 1px solid #ddd;
}

.nav-button,
.submit-button {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-button {
    background-color: #f8f9fa;
    color: #1a237e;
    border: 1px solid #1a237e;
}

.nav-button:hover {
    background-color: #e9ecef;
}

.submit-button {
    background-color: #1a237e;
    color: white;
}

.submit-button:hover {
    background-color: #0d1642;
}

/* Checkbox Groups */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin: 0;
}

/* Tab Content */
.tab-content {
    display: none;
    padding: 1.5rem;
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.tab-content h3 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: #1a237e;
}

/* Form Tabs */
.tab-navigation {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid #ddd;
    padding: 0;
}

.tab-button {
    padding: 0.75rem 1.5rem;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 1rem;
    color: #666;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.tab-button:hover {
    color: #1a237e;
}

.tab-button.active {
    color: #1a237e;
    border-bottom-color: #1a237e;
}

.tab-content {
    display: none;
    padding: 1rem;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header styles moved to style.css */

.hero {
    text-align: center;
    padding: 2rem 0;
}

.hero h1 {
    margin-bottom: 0.5rem;
}

/* Quote Form */
.quote-form-section {
    padding: 2rem 0;
    background-color: #f5f5f5;
}

.quote-form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Quote Result */
.quote-result.success-box {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-top: 4px solid #28a745;
}

.quote-result h3 {
    color: #333;
    margin-bottom: 1.5rem;
    text-align: center;
}

.premium-box {
    text-align: center;
    padding: 1.5rem;
    margin-bottom: 2rem;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.premium-box h4 {
    color: #666;
    margin-bottom: 0.5rem;
}

.premium-amount {
    font-size: 2.5rem;
    font-weight: bold;
    color: #28a745;
}

.quote-details {
    padding: 1rem 0;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.detail-section {
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.detail-section h5 {
    color: #333;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #dee2e6;
}

.detail-section p {
    margin-bottom: 0.5rem;
    color: #666;
}

.detail-section strong {
    color: #333;
}

.reference-box {
    grid-column: 1 / -1;
    text-align: center;
    padding: 1rem;
    background-color: #e9ecef;
    border-radius: 8px;
}

.reference-box p {
    margin-bottom: 0.5rem;
}

.reference-box .note {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

/* Form Tabs */
.form-tabs {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    border-bottom: 1px solid #dee2e6;
}

.form-tabs li {
    margin-right: 0.5rem;
}

.form-tabs button {
    padding: 0.75rem 1.5rem;
    border: none;
    background: none;
    color: #666;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.form-tabs button:hover {
    color: #333;
    border-bottom-color: #ccc;
}

.form-tabs button.active {
    color: #1a237e;
    border-bottom-color: #1a237e;
}

/* Form Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #1a237e;
    box-shadow: 0 0 0 2px rgba(26, 35, 126, 0.1);
}

/* Alert Boxes */
.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
}

.alert-danger {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* Debug Info */
.debug-info {
    margin: 2rem 0;
    padding: 1rem;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
}

.debug-info pre {
    margin: 0;
    white-space: pre-wrap;
    font-size: 0.9rem;
    color: #666;
}
