/* EPIC Calculator Styles - Using site-wide variables */
/* All color and typography variables inherit from main style.css */

/* Header Section */
#epic-hero {
    background: var(--background-light);
    padding: 4rem 2rem;
    text-align: center;
    border-bottom: 1px solid var(--gold-light);
}

#epic-hero h1 {
    font-size: 2.5rem;
    font-weight: 600;
    font-family: var(--font-heading);
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.2;
}

#epic-hero .hero-subtitle {
    font-size: 1.25rem;
    font-family: var(--font-body);
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.4;
}

.calculator-badge {
    display: inline-flex;
    align-items: center;
    background: var(--background-white);
    border: 1px solid var(--gold-light);
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
    box-shadow: var(--shadow-soft);
}

.badge-text {
    font-size: 0.875rem;
    font-family: var(--font-body);
    color: var(--text-muted);
    font-weight: 500;
}

/* Hero Section */
#epic-score-calculator {
    background: var(--background-light);
    min-height: 100vh;
    padding: 2rem 0;
}

.epic-hero {
    text-align: center;
    padding: 4rem 2rem;
    border-bottom: 1px solid var(--gold-light);
    margin-bottom: 3rem;
}

.premium-calculator-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    background: var(--background-white);
    border: 1px solid var(--gold-light);
    border-radius: 25px;
    padding: 1rem 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-soft);
}

.investment-text {
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-body);
    color: var(--primary-gold);
    margin-bottom: 0.25rem;
}

.ai-text {
    font-size: 0.875rem;
    font-family: var(--font-body);
    color: var(--text-muted);
}

.hero-icon {
    font-size: 3rem !important;
    color: var(--primary-gold);
    margin-bottom: 1.5rem;
    display: block;
}

.epic-hero h1 {
    font-size: 2rem;
    font-weight: 600;
    font-family: var(--font-heading);
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-family: var(--font-body);
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.4;
}

.hero-description {
    max-width: 900px;
    margin: 0 auto 2rem;
}

.hero-description p {
    font-size: 1.1rem;
    font-family: var(--font-body);
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.value-highlight {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--gold-gradient);
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--border-radius-pill);
    font-weight: 600;
    font-family: var(--font-body);
    box-shadow: var(--shadow-soft);
}

/* EPIC Guide Section */
.epic-guide-section {
    background: var(--background-white);
    padding: 3rem 2rem;
    margin-bottom: 3rem;
    border-radius: var(--border-radius-card);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--gold-light);
}

.guide-header {
    text-align: center;
    margin-bottom: 2rem;
}

.guide-icon {
    font-size: 1.6rem !important;
    color: var(--primary-gold);
    margin-bottom: 1rem;
}

.guide-header h2 {
    font-size: 2rem;
    font-weight: 600;
    font-family: var(--font-heading);
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.guide-subtitle {
    font-size: 1.1rem;
    font-family: var(--font-body);
    color: var(--text-muted);
}

.table-container {
    overflow-x: auto;
    margin-bottom: 2rem;
}

.epic-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-body);
}

.epic-table th {
    background: var(--gold-light);
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1rem;
    font-family: var(--font-body);
    padding: 1rem;
    text-align: left;
    border-bottom: 2px solid var(--gold-medium);
}

.epic-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--gold-light);
    color: var(--text-muted);
    font-size: 1rem;
    font-family: var(--font-body);
    font-weight: 400;
}

.epic-table tbody tr:hover {
    background: var(--gold-light);
}

.guide-footer {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid var(--gold-light);
}

.guide-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    color: var(--text-muted);
    font-style: italic;
}

.guide-note i {
    color: var(--primary-gold);
    font-size: 1.6rem !important;
}

/* Calculator Form */
.epic-calculator-form {
    background: var(--background-white);
    padding: 3rem 2rem;
    border-radius: var(--border-radius-card);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--gold-light);
}

.form-header {
    text-align: center;
    margin-bottom: 3rem;
}

.form-icon {
    font-size: 1.6rem !important;
    color: var(--primary-gold);
    margin-bottom: 1rem;
}

.form-header h2 {
    font-size: 2rem;
    font-weight: 600;
    font-family: var(--font-heading);
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.form-subtitle {
    font-size: 1.1rem;
    font-family: var(--font-body);
    color: var(--text-muted);
}

/* Form Groups */
.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-family: var(--font-body);
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.form-group label i {
    color: var(--primary-gold);
    font-size: 1.6rem !important;
}

.required {
    color: var(--primary-gold);
    font-weight: bold;
}

.optional {
    color: var(--text-muted);
    font-weight: normal;
    font-size: 0.875rem;
}

.form-group input[type="url"],
.form-group input[type="email"],
.form-group input[type="text"],
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--gold-light);
    border-radius: var(--border-radius-medium);
    font-size: 1rem;
    font-family: var(--font-body);
    background: var(--background-white) !important;
    color: var(--text-dark) !important;
    transition: var(--transition-ease);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="%23937356" d="M2 0L0 2h4zm0 5L0 3h4z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px;
    padding-right: 3rem;
    background-color: var(--background-white) !important;
    color: var(--text-dark) !important;
}

/* Consolidated dropdown styling */
.form-group select option:first-child,
select#executive_position option:disabled {
    color: var(--text-muted) !important;
    font-style: italic;
    background-color: var(--background-white) !important;
}

/* Ensure all dropdown options have proper styling */
.form-group select option,
select option {
    background-color: var(--background-white) !important;
    color: var(--text-dark) !important;
    padding: 0.5rem;
}

/* Optgroup styling */
.form-group select optgroup,
select optgroup {
    background-color: var(--gold-light) !important;
    color: var(--primary-gold) !important;
    font-weight: 600;
}

/* REMOVED conflicting :invalid and :valid rules that were overriding executive position color */

/* EXECUTIVE POSITION OVERRIDE - Simplified and consistent */
select#executive_position {
    background-color: var(--background-white) !important;
    color: var(--text-dark) !important;
}

select#executive_position:focus,
select#executive_position:valid,
select#executive_position:invalid {
    background-color: var(--background-white) !important;
    color: var(--text-dark) !important;
}

/* Simplified option styling - no duplicates */
select#executive_position optgroup {
    font-weight: 600;
    color: var(--primary-gold) !important;
    font-size: 0.9rem;
    background-color: var(--gold-light) !important;
}

select#executive_position option {
    padding: 0.5rem;
    color: var(--text-dark) !important;
    font-weight: normal;
    background-color: var(--background-white) !important;
}

/* Placeholder/disabled option styling */
select#executive_position option:disabled,
select#executive_position option[value=""] {
    color: var(--text-muted) !important;
    font-style: italic !important;
    background-color: var(--background-white) !important;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 3px var(--gold-translucent);
    background-color: var(--background-white) !important;
    color: var(--text-dark) !important;
}

.form-note {
    margin-top: 0.5rem;
    padding: 0.75rem;
    background: var(--background-light);
    border-radius: var(--border-radius-medium);
    font-size: 0.8rem;
    font-family: var(--font-body);
    color: var(--text-muted);
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    line-height: 1.4;
    border: 1px solid var(--border-subtle);
}

.form-note i {
    color: var(--primary-gold);
    font-size: 1.6rem !important;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

/* Goals Section */
.goals-section {
    margin-bottom: 2rem;
    padding: 2rem;
    background: var(--gold-light);
    border-radius: var(--border-radius-card);
    border: 1px solid var(--gold-medium);
}

.goals-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-family: var(--font-body);
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.goals-label i {
    color: var(--primary-gold);
    font-size: 1.6rem !important;
}

.goals-notice {
    background: var(--card-bg);
    border: 1px solid var(--gold-medium);
    border-radius: var(--border-radius-rounded);
    padding: 1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.goals-notice i {
    color: var(--primary-gold);
    font-size: 1.6rem !important;
    flex-shrink: 0;
}

.goals-notice span {
    font-family: var(--font-body);
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 400;
}

/* Consolidated grid styling for all form sections */
.goals-grid,
.challenges-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 cards per row on desktop */
    gap: 1.5rem; /* Consistent card spacing */
    margin-top: 1rem;
}

.goal-checkboxes,
.media-exposure-options,
.company-size-options,
.career-phase-options,
.investment-options,
.aeo-interest-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

/* Consolidated notice styling */
.goals-notice,
.challenges-notice {
    background: var(--background-light);
    border: 1px solid var(--gold-light);
    border-radius: var(--border-radius-medium);
    padding: 1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.goals-notice i,
.challenges-notice i {
    color: var(--primary-gold);
    font-size: 1.6rem !important;
    flex-shrink: 0;
}

.goals-notice span,
.challenges-notice span {
    font-family: var(--font-body);
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 400;
}

/* Use same styling as homepage goal-checkbox-item */
.goal-checkbox-item {
    position: relative;
}

.goal-checkbox-item input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    margin: 0;
    z-index: 2;
}

.goal-checkbox-item label {
    display: block;
    padding: 1.5rem;
    background: var(--background-white);
    border: 2px solid var(--border-subtle);
    border-radius: var(--border-radius-card);
    cursor: pointer;
    transition: var(--transition-ease);
    text-align: center;
    color: var(--text-dark);
    position: relative;
}

.goal-checkbox-item label:hover {
    border-color: var(--primary-gold);
    background: var(--background-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

/* Checked state for checkboxes */
.goal-checkbox-item input[type="checkbox"]:checked + label {
    border-color: var(--primary-gold);
    background: var(--gold-light);
    box-shadow: var(--shadow-soft);
}

.goal-checkbox-item input[type="checkbox"]:checked + label .goal-title {
    color: var(--primary-gold);
    font-weight: 600;
}

.goal-checkbox-item input[type="checkbox"]:checked + label i {
    color: var(--primary-gold);
    transform: scale(1.1);
}

/* Radio card selected state - Enhanced visibility */
.radio-card.selected label {
    border-color: var(--primary-gold) !important;
    background: var(--gold-light) !important;
    box-shadow: 0 4px 12px rgba(147, 127, 86, 0.25) !important;
    transform: translateY(-1px) !important;
}

.radio-card.selected .goal-title {
    color: var(--primary-gold) !important;
    font-weight: 700 !important;
}

.radio-card.selected .goal-desc {
    color: var(--text-primary) !important;
    font-weight: 500 !important;
}

.radio-card.selected i {
    color: var(--primary-gold) !important;
    transform: scale(1.1) !important;
}

/* Grid rule already defined above - removed duplicate */

.goal-item input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.goal-item label {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-weight: 600;
    font-family: var(--font-body);
    color: var(--text-dark);
    margin: 0;
}

.goal-icon {
    color: var(--primary-gold);
    margin-right: 0.5rem;
    font-size: 1.6rem !important;
}

.goal-description {
    font-weight: normal;
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Override goal-desc font size for smaller hints in EPIC calculator */
.goal-desc {
    font-size: 0.8rem !important;
    color: var(--text-muted);
    font-weight: 400;
    line-height: 1.4;
}

.goal-item input:checked + label {
    color: var(--primary-gold);
}

.goal-item input:checked {
    background: var(--gold-gradient);
}

/* Form Footer */
.form-footer {
    margin-top: 3rem;
    text-align: center;
}

.privacy-notice {
    margin-bottom: 2rem;
    padding: 1rem;
    background: var(--gold-light);
    border-radius: var(--border-radius-rounded);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.privacy-notice i {
    color: var(--primary-gold);
    font-size: 1.6rem !important;
}

.privacy-notice span {
    font-family: var(--font-body);
    color: var(--text-muted);
    font-size: 1rem;
}

.privacy-link {
    color: var(--primary-gold);
    text-decoration: none;
    font-weight: 600;
}

.privacy-link:hover {
    text-decoration: underline;
}

/* CTA Button */
.cta-button {
    background: var(--primary-dark);
    color: white;
    border: 1px solid var(--primary-dark);
    border-radius: var(--border-radius-medium);
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    font-family: var(--font-body);
    cursor: pointer;
    transition: var(--transition-ease);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.cta-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: buttonShineBlue 3.5s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

.cta-button:hover {
    background: var(--secondary-dark);
    border-color: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    color: white;
}

.cta-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    #epic-hero {
        padding: 3rem 1rem;
    }
    
    #epic-hero h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    #epic-hero .hero-subtitle {
        font-size: 1.1rem;
        line-height: 1.4;
    }
    
    .epic-hero {
        padding: 2rem 1rem;
    }
    
    .epic-hero h1 {
        font-size: 1.75rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        line-height: 1.4;
    }
    
    .hero-icon {
        font-size: 2.5rem !important;
        margin-bottom: 1rem;
    }
    
    .hero-description p {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .epic-guide-section,
    .epic-calculator-form {
        padding: 2rem 1rem;
    }
    
    .guide-header h2,
    .form-header h2 {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    
    .goals-grid,
    .challenges-grid,
    .goal-checkboxes,
    .media-exposure-options,
    .company-size-options,
    .career-phase-options,
    .investment-options,
    .aeo-interest-options {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .goal-checkbox-item label,
    .exposure-item label,
    .company-item label,
    .career-item label,
    .investment-item label {
        padding: 1.25rem;
    }
    
    .goal-item {
        padding: 1.25rem;
    }
    
    .epic-table th,
    .epic-table td {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .cta-button {
        padding: 1rem 2rem;
        width: 100%;
        font-size: 1rem;
    }
    
    .form-note,
    .privacy-notice span,
    .goals-notice span {
        font-size: 0.75rem;
    }
    
    .goal-desc {
        font-size: 0.75rem !important;
    }
}

/* Input Validation Styles (from inline script) */
.input-feedback {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    font-weight: 500;
    min-height: 20px;
    font-family: var(--font-body);
}

.input-feedback.valid {
    color: var(--primary-gold) !important;
    display: block !important;
}

.input-feedback.invalid {
    color: #e74c3c !important;
    display: block !important;
}

.input-feedback i {
    margin-right: 5px;
}

.epic-form input.valid {
    border-color: var(--primary-gold) !important;
    background: var(--gold-light) !important;
}

.epic-form input.invalid {
    border-color: #e74c3c !important;
    background: rgba(231, 76, 60, 0.05) !important;
}

.goals-feedback.valid {
    color: var(--primary-gold);
    font-family: var(--font-body);
    font-weight: 500;
    margin-top: 1rem;
}

.goals-feedback.invalid {
    color: #e74c3c;
    font-family: var(--font-body);
    font-weight: 500;
    margin-top: 1rem;
}

/* Loading Button States */
.btn-loading {
    display: none;
    align-items: center;
    gap: 8px;
}

.btn-loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* REMOVED: Icon styles are now handled globally in main style.css for consistency
   This prevents conflicts with the luxury golden gradient system */
