/* 
   Professional Genogram Creation Service - Additional Styles
   Built on top of style.css
*/

/* ==================== */
/* Service Hero Section */
/* ==================== */

.service-hero {
    background: linear-gradient(135deg, #4a6fa5 0%, #3a5a8a 50%, #2a4a7a 100%);
    color: white;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.service-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.service-hero .container {
    position: relative;
    z-index: 1;
    text-align: center;
}

.service-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: white;
}

.service-tagline {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.service-hero .cta-buttons {
    justify-content: center;
    margin-top: 2rem;
}

.btn-light {
    background: white;
    color: var(--primary-color);
    border: 2px solid white;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-light:hover {
    background: transparent;
    color: white;
    text-decoration: none;
}

/* ==================== */
/* How It Works Section */
/* ==================== */

.how-it-works {
    padding: 4rem 0;
    background: #f8f9fa;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.step-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 15px rgba(74, 111, 165, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(74, 111, 165, 0.15);
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), #3a5a8a);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
}

.step-card h3 {
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.step-card p {
    color: var(--secondary-color);
    line-height: 1.6;
}

/* ==================== */
/* Pricing Cards        */
/* ==================== */

.service-pricing {
    padding: 4rem 0;
    background: white;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.pricing-tier {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.pricing-tier:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(74, 111, 165, 0.15);
}

.pricing-tier.featured {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.pricing-tier.featured:hover {
    transform: scale(1.05) translateY(-5px);
}

.popular-tag {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.tier-name {
    font-size: 1.5rem;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.tier-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.tier-price .currency {
    font-size: 1.5rem;
    vertical-align: super;
}

.tier-duration {
    color: var(--secondary-color);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.tier-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    text-align: left;
}

.tier-features li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.tier-features li i {
    color: #28a745;
    font-size: 1rem;
    width: 16px;
}

.rush-addon {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 1rem;
    margin: 1.5rem 0;
    text-align: center;
}

.rush-addon strong {
    color: #856404;
}

/* ==================== */
/* What's Included      */
/* ==================== */

.whats-included {
    padding: 4rem 0;
    background: #f8f9fa;
}

.included-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.included-item {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.included-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #e9f2fa, #dce8f5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.included-icon i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.included-item h3 {
    color: var(--dark-color);
    margin-bottom: 0.75rem;
}

.included-item p {
    color: var(--secondary-color);
    font-size: 0.95rem;
}

/* ==================== */
/* Who It's For Section */
/* ==================== */

.target-audience {
    padding: 4rem 0;
    background: white;
}

.audience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}

.audience-item {
    text-align: center;
    padding: 2rem;
}

.audience-item i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.audience-item h3 {
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.audience-item p {
    color: var(--secondary-color);
}

/* ==================== */
/* FAQ Section          */
/* ==================== */

.service-faq {
    padding: 4rem 0;
    background: #f8f9fa;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.faq-question {
    background: none;
    border: none;
    width: 100%;
    padding: 1.5rem;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s;
}

.faq-question:hover {
    background: #f8f9fa;
}

.faq-question i {
    color: var(--primary-color);
    transition: transform 0.3s;
}

.faq-question.active i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-answer.active {
    padding: 0 1.5rem 1.5rem;
    max-height: 200px;
}

.faq-answer p {
    color: var(--secondary-color);
    margin: 0;
    line-height: 1.6;
}

/* ==================== */
/* Order Form Styles    */
/* ==================== */

.order-form {
    padding: 2rem 0 4rem;
    background: #f8f9fa;
}

.form-container {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.form-main {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.form-section {
    margin-bottom: 3rem;
}

.form-section:last-child {
    margin-bottom: 0;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e9ecef;
}

.section-header i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.section-header h3 {
    color: var(--dark-color);
    margin: 0;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
    font-weight: 500;
}

.required {
    color: #dc3545;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 111, 165, 0.1);
}

.form-control.error {
    border-color: #dc3545;
}

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

/* Tier Selection Cards */
.tier-selection {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.tier-option {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

.tier-option:hover {
    border-color: var(--primary-color);
}

.tier-option.selected {
    border-color: var(--primary-color);
    background: #f0f6ff;
}

.tier-option input[type="radio"] {
    display: none;
}

.tier-option .tier-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.tier-option .tier-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.tier-option .tier-description {
    font-size: 0.9rem;
    color: var(--secondary-color);
}

.rush-toggle {
    background: #fff3cd;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.rush-toggle input[type="checkbox"] {
    transform: scale(1.2);
}

.rush-toggle label {
    margin: 0;
    color: #856404;
    font-weight: 500;
}

/* Family Data Table */
.family-table-container {
    overflow-x: auto;
    border: 1px solid #e9ecef;
    border-radius: 8px;
}

.family-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.family-table th {
    background: #f8f9fa;
    padding: 0.75rem;
    border-bottom: 2px solid #e9ecef;
    font-weight: 600;
    color: var(--dark-color);
}

.family-table td {
    padding: 0.5rem;
    border-bottom: 1px solid #e9ecef;
}

.family-table input,
.family-table select {
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    font-size: 0.9rem;
    width: 100%;
}

.family-table .btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

.add-member-btn {
    margin-top: 1rem;
    background: var(--success-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
}

/* Relationships Section */
.relationship-type {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.relationship-type h4 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.relationship-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 0.75rem;
    align-items: end;
}

.relationship-inputs .btn-sm {
    padding: 0.5rem;
    height: fit-content;
    min-width: 36px;
}

/* Price Summary Sidebar */
.price-summary {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    height: fit-content;
    position: sticky;
    top: 100px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.summary-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e9ecef;
}

.summary-item:last-child {
    border-bottom: none;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.summary-total {
    border-top: 2px solid var(--primary-color);
    padding-top: 1rem;
    margin-top: 1rem;
}

.submit-section {
    background: linear-gradient(135deg, #e9f2fa, #f0f6ff);
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 2rem;
    text-align: center;
}

.submit-btn {
    background: linear-gradient(135deg, var(--primary-color), #3a5a8a);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #3a5a8a, #2a4a7a);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(74, 111, 165, 0.3);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.form-note {
    font-size: 0.875rem;
    color: var(--secondary-color);
    text-align: center;
    margin-top: 1rem;
}

/* ==================== */
/* Responsive Design    */
/* ==================== */

@media (max-width: 992px) {
    .form-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .price-summary {
        position: static;
    }
    
    .tier-selection {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .service-hero h1 {
        font-size: 2.2rem;
    }
    
    .service-tagline {
        font-size: 1.2rem;
    }
    
    .steps-container {
        grid-template-columns: 1fr;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-tier.featured {
        transform: none;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .relationship-inputs {
        grid-template-columns: 1fr auto;
    }
    .relationship-inputs select {
        grid-column: 1;
    }
    
    .audience-grid,
    .included-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .service-hero h1 {
        font-size: 1.8rem;
    }
    
    .form-main,
    .price-summary {
        padding: 1.5rem;
    }
    
    .family-table-container {
        font-size: 0.875rem;
    }
}