/* Triple O SMSF Eligibility Form Styles */
.tripleo-form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.tripleo-form-header {
    text-align: center;
    margin-bottom: 30px;
}

.tripleo-title {
    font-size: 2.5rem;
    font-weight: bold;
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.tripleo-subtitle {
    font-size: 1.125rem;
    color: #6b7280;
    margin: 0;
}

.tripleo-form-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.tripleo-form-header-card {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border-bottom: 1px solid #e5e7eb;
}

.tripleo-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.tripleo-form-header-card h3 {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 0 0.5rem 0;
    color: #1f2937;
}

.tripleo-form-header-card p {
    color: #6b7280;
    margin: 0;
}

.tripleo-form {
    padding: 2rem;
}

.tripleo-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.tripleo-form-group {
    margin-bottom: 1.5rem;
}

.tripleo-form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #374151;
}

.tripleo-form-group small {
    display: block;
    font-size: 0.75rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.tripleo-form-group input,
.tripleo-form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.tripleo-form-group input:focus,
.tripleo-form-group select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.tripleo-radio-group {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.tripleo-radio-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: normal;
    margin: 0;
    cursor: pointer;
}

.tripleo-radio-group input[type="radio"] {
    width: auto;
    margin: 0;
}

.tripleo-consent {
    background: #f9fafb;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.tripleo-consent label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-weight: normal;
    cursor: pointer;
    margin-bottom: 0.5rem;
}

.tripleo-consent input[type="checkbox"] {
    width: auto;
    margin: 0;
    margin-top: 0.125rem;
}

.tripleo-consent small {
    color: #6b7280;
    font-size: 0.75rem;
    margin: 0;
}

.tripleo-submit-btn {
    width: 100%;
    background: #f59e0b;
    color: #1f2937;
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1.125rem;
    font-weight: bold;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px -2px rgba(245, 158, 11, 0.25);
}

.tripleo-submit-btn:hover {
    background: #d97706;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px -2px rgba(245, 158, 11, 0.4);
}

/* Result Styles */
.tripleo-result {
    margin-top: 2rem;
    border-radius: 12px;
    overflow: hidden;
}

.tripleo-result.tier-a {
    background: #f0fdf4;
    border: 2px solid #22c55e;
}

.tripleo-result.tier-b {
    background: #fffbeb;
    border: 2px solid #f59e0b;
}

.tripleo-result.tier-c {
    background: #fef2f2;
    border: 2px solid #ef4444;
}

.tripleo-result-header {
    text-align: center;
    padding: 2rem;
}

.tripleo-result-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.tier-a .tripleo-result-icon {
    background: #22c55e;
    color: white;
}

.tier-b .tripleo-result-icon {
    background: #f59e0b;
    color: white;
}

.tier-c .tripleo-result-icon {
    background: #ef4444;
    color: white;
}

.tripleo-result-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 0 1rem 0;
}

.tier-a .tripleo-result-title { color: #166534; }
.tier-b .tripleo-result-title { color: #92400e; }
.tier-c .tripleo-result-title { color: #991b1b; }

.tripleo-result-description {
    font-size: 1.125rem;
    margin: 0;
}

.tier-a .tripleo-result-description { color: #166534; }
.tier-b .tripleo-result-description { color: #92400e; }
.tier-c .tripleo-result-description { color: #991b1b; }

.tripleo-result-content {
    padding: 0 2rem 2rem;
}

.tripleo-result-bullets {
    margin-bottom: 1.5rem;
}

.tripleo-result-bullets h4 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.tripleo-result-bullets ul {
    margin: 0;
    padding-left: 1rem;
}

.tripleo-result-bullets li {
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
}

.tripleo-result-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.tripleo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

.tripleo-btn-primary {
    background: #f59e0b;
    color: #1f2937;
}

.tripleo-btn-primary:hover {
    background: #d97706;
    color: #1f2937;
}

.tripleo-btn-outline {
    background: transparent;
    color: #374151;
    border: 1px solid #d1d5db;
}

.tripleo-btn-outline:hover {
    background: #f9fafb;
    color: #374151;
}

.tripleo-result-disclaimer {
    font-size: 0.75rem;
    color: #6b7280;
    font-style: italic;
    border-top: 1px solid #e5e7eb;
    padding-top: 1rem;
}

/* Helper Sections */
.tripleo-helper,
.tripleo-warning {
    margin-top: 2rem;
    padding: 1.5rem;
    border-radius: 8px;
}

.tripleo-helper {
    background: #fffbeb;
    border: 1px solid #f59e0b;
}

.tripleo-warning {
    background: #fef2f2;
    border: 1px solid #ef4444;
}

.tripleo-helper h4,
.tripleo-warning h4 {
    margin: 0 0 1rem 0;
    font-size: 1.125rem;
    font-weight: 600;
}

.tripleo-helper h4 { color: #92400e; }
.tripleo-warning h4 { color: #991b1b; }

.tripleo-helper ul {
    margin: 0 0 1rem 0;
    padding-left: 1.5rem;
}

.tripleo-helper li,
.tripleo-warning p {
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.tripleo-helper li { color: #92400e; }
.tripleo-warning p { color: #991b1b; }

.tripleo-helper a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

.tripleo-helper a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tripleo-form-row {
        grid-template-columns: 1fr;
    }
    
    .tripleo-radio-group {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .tripleo-result-actions {
        flex-direction: column;
    }
    
    .tripleo-title {
        font-size: 2rem;
    }
}