@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Merriweather:wght@400;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #8B0000 0%, #5a0000 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 20px;
}

.container {
    max-width: 900px;
    width: 100%;
}

header {
    text-align: center;
    margin-bottom: 40px;
}

header h1 {
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    font-family: 'Merriweather', Georgia, serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.header-title {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.header-subtitle {
    font-size: 1rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 4px;
    opacity: 0.9;
}

.header-main {
    text-transform: uppercase;
    text-decoration: underline;
    text-underline-offset: 8px;
}

.header-logo {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    margin-right: -10px;
}

.hero-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
    border: 8px solid #ffffff;
    border-radius: 20px;
    box-sizing: border-box;
}

.cta-buttons {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.cta-button {
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    border: 3px solid #8B0000;
    padding: 18px 36px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
}

.cta-button:hover {
    background: #ffffff;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
    border-color: #A52A2A;
}

.cta-button:active {
    transform: translateY(0);
}

.cta-button-secondary {
    background: rgba(139, 0, 0, 0.9);
    color: #ffffff;
    border-color: #8B0000;
}

.cta-button-secondary:hover {
    background: rgba(139, 0, 0, 1);
    border-color: #A52A2A;
}

/* FAQ Section */
.faq-section {
    margin-top: 40px;
    background: #ffffff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.faq-section h2 {
    color: #ffffff;
    font-size: 1.8rem;
    margin-bottom: 30px;
    text-align: center;
    background: #8B0000;
    display: inline-block;
    padding: 10px 30px;
    border-radius: 50px;
    text-decoration: underline;
    text-underline-offset: 5px;
    width: 100%;
    box-sizing: border-box;
}

.accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.accordion-item {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.accordion-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.accordion-header {
    width: 100%;
    background: #f8f9fa;
    border: none;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    gap: 12px;
}

.accordion-gavel {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    filter: brightness(0);
}

.accordion-header > span:nth-child(2) {
    color: #333;
    text-align: left;
    transition: background 0.3s ease;
    flex: 1 1 0%;
    min-width: 0;
}

.accordion-header:hover {
    background: #f0f1f3;
}

.accordion-icon {
    font-size: 1.5rem;
    font-weight: 300;
    color: #8B0000;
    transition: transform 0.3s ease;
    flex: 0 0 24px;
    text-align: center;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: #8B0000;
}

.accordion-content p {
    padding: 20px 24px;
    color: #ffffff;
    line-height: 1.7;
    font-size: 0.95rem;
}

.accordion-item.active .accordion-header {
    background: #8B0000;
    color: #ffffff;
}

.accordion-item.active .accordion-header span {
    color: #ffffff;
}

.accordion-item.active .accordion-icon {
    color: #ffffff;
}

.accordion-item.active .accordion-gavel {
    filter: brightness(0) invert(1);
}

/* Footer */
footer {
    text-align: center;
    margin-top: 40px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

footer p {
    margin-bottom: 8px;
}

footer a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: underline;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #ffffff;
}

/* Terms Page Styles */
.terms-content {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.terms-content h2 {
    color: #333;
    font-size: 1.5rem;
    margin-top: 30px;
    margin-bottom: 15px;
}

.terms-content h2:first-of-type {
    margin-top: 0;
}

.terms-content p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 15px;
}

.terms-content ul {
    color: #555;
    line-height: 1.7;
    margin-bottom: 15px;
    margin-left: 24px;
}

.terms-content li {
    margin-bottom: 8px;
}

.back-link {
    display: inline-block;
    margin-top: 30px;
    color: #8B0000;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: #5a0000;
}

.placeholder-notice {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 25px;
    color: #856404;
}

.faq-section h2 {
    font-family: 'Playfair Display', Georgia, serif;
}

.terms-content h2 {
    font-family: 'Playfair Display', Georgia, serif;
}

@media (max-width: 768px) {
    header h1 {
        font-size: 1.8rem;
    }
    
    .hero-image {
        height: 200px;
    }
    
    .cta-button {
        padding: 15px 30px;
        font-size: 1rem;
    }
    
    .faq-section {
        padding: 25px;
    }
    
    .faq-section h2 {
        font-size: 1.4rem;
    }
    
    .accordion-header {
        padding: 16px 18px;
        font-size: 0.9rem;
    }
    
    .accordion-content p {
        padding: 16px 18px;
        font-size: 0.9rem;
    }
    
    .terms-content {
        padding: 25px;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: #ffffff;
    border-radius: 20px;
    max-width: 700px;
    width: 100%;
    min-height: 500px;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.modal-content > wizard-steps {
    flex-shrink: 0;
    padding: 30px 30px 0;
}

.modal-content > .wizard-buttons {
    flex-shrink: 0;
    padding: 0 30px 30px;
}

/* Wizard Styles */
.wizard-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px 30px;
    min-height: 200px;
}

.wizard-content h3 {
    color: #8B0000;
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-family: 'Merriweather', Georgia, serif;
}

.required {
    color: #8B0000;
}

.wizard-content p {
    color: #555;
    margin-bottom: 15px;
}

.wizard-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wizard-option {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wizard-option:hover {
    border-color: #8B0000;
    background: #fff8f8;
}

.wizard-option input {
    margin-right: 12px;
    width: 18px;
    height: 18px;
    accent-color: #8B0000;
}

.wizard-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

.form-group input {
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.form-group input:focus {
    outline: none;
    border-color: #8B0000;
}

.form-group input::placeholder {
    color: #999;
}

.state-display {
    display: block;
    margin-top: 5px;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group textarea {
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: 'Inter', sans-serif;
    resize: vertical;
    min-height: 80px;
}

.form-group textarea:focus {
    outline: none;
    border-color: #8B0000;
}

.label-note {
    font-weight: 400;
    font-style: italic;
    color: #666;
    font-size: 0.85rem;
}

.checkbox-group {
    margin-top: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 500;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #8B0000;
    cursor: pointer;
}

/* Source Entry Styles */
.source-entry {
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
}

.source-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.source-number {
    font-weight: 700;
    color: #8B0000;
    font-size: 1.1rem;
}

.remove-source-btn {
    background: transparent;
    border: 2px solid #8B0000;
    color: #8B0000;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.remove-source-btn:hover {
    background: #8B0000;
    color: #ffffff;
}

.add-source-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 15px;
    background: #ffffff;
    border: 3px dashed #8B0000;
    color: #8B0000;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.add-source-btn:hover {
    background: #fff8f8;
}

.wizard-review {
    background: #fff8f8;
    padding: 20px;
    border-radius: 10px;
    border: 2px solid #8B0000;
}

.wizard-review p {
    margin-bottom: 10px;
}

.wizard-review strong {
    color: #8B0000;
}

.wizard-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.wizard-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.wizard-btn-back {
    background: #ffffff;
    color: #8B0000;
    border: 2px solid #8B0000;
}

.wizard-btn-back:hover {
    background: #fff8f8;
}

.wizard-btn-next {
    background: #8B0000;
    color: #ffffff;
    margin-left: auto;
}

.wizard-btn-next:hover {
    background: #A52A2A;
}

/* Logo Buttons */
.wizard-logo-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 15px;
}

.logo-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 15px;
    border: 3px solid #e0e0e0;
    border-radius: 12px;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 10px;
    position: relative;
}

/* Tooltip */
.logo-button:hover::before,
.logo-button:hover::after {
    opacity: 1;
    visibility: visible;
}

.logo-button::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #8B0000;
    z-index: 101;
}

.logo-button::after {
    content: attr(title);
    position: absolute;
    bottom: calc(100% + 20px);
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    color: #333;
    padding: 12px 16px;
    border-radius: 12px;
    border: 3px solid #8B0000;
    font-size: 0.9rem;
    white-space: normal;
    min-width: 180px;
    max-width: 250px;
    text-align: center;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 0, 0, 0.2);
    line-height: 1.4;
}

.logo-button:hover {
    border-color: #8B0000;
    background: #fff8f8;
}

.logo-button.selected {
    border-color: #8B0000;
    background: #8B0000;
    color: #ffffff;
}

.logo-button.selected svg {
    stroke: #ffffff;
    fill: none;
}

.logo-button svg {
    stroke: #666;
    fill: none;
    transition: all 0.3s ease;
}

.logo-button:hover svg {
    stroke: #8B0000;
    fill: none;
}

.logo-button.selected:hover svg {
    stroke: #ffffff;
    fill: none;
}

.logo-button span {
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
}

.logo-button.selected span {
    color: #ffffff;
}

/* Multi-icons for Social Media */
.multi-icons {
    display: flex;
    gap: 4px;
    justify-content: center;
}

.multi-icons svg {
    width: 28px;
    height: 28px;
    fill: #666;
    stroke: #666;
    stroke-width: 0.5;
    transition: all 0.3s ease;
}

.logo-button:hover .multi-icons svg {
    fill: #8B0000;
    stroke: #8B0000;
}

.logo-button.selected .multi-icons svg {
    fill: #ffffff;
    stroke: #ffffff;
}

.logo-button.selected:hover .multi-icons svg {
    fill: #ffffff;
    stroke: #ffffff;
}

.wizard-content h4 {
    color: #8B0000;
    font-size: 1.1rem;
    margin-top: 25px;
    margin-bottom: 10px;
    font-family: 'Merriweather', Georgia, serif;
}

@media (max-width: 600px) {
    .wizard-logo-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Upload Field */
.upload-field {
    background: #f8f9fa;
    border: 2px dashed #8B0000;
    border-radius: 8px;
    padding: 15px;
    margin-top: 10px;
}

.upload-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #8B0000;
}

.file-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #ffffff;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
}

.file-input::-webkit-file-upload-button {
    background: #8B0000;
    color: #ffffff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 10px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

.file-input::-webkit-file-upload-button:hover {
    background: #A52A2A;
}

.file-hint {
    display: block;
    margin-top: 8px;
    color: #666;
    font-size: 0.85rem;
}

/* Warning Box */
.warning-box {
    display: flex;
    gap: 15px;
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
}

.warning-icon {
    flex-shrink: 0;
    color: #856404;
}

.warning-content {
    flex: 1;
}

.warning-content strong {
    display: block;
    color: #856404;
    margin-bottom: 5px;
}

.warning-content p {
    margin: 0;
    color: #856404;
    font-size: 0.9rem;
    line-height: 1.5;
}

.warning-acknowledge-btn {
    margin-top: 12px;
    padding: 8px 16px;
    background: #8B0000;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background 0.3s ease;
}

.warning-acknowledge-btn:hover {
    background: #A52A2A;
}

/* Info Box */
.info-box {
    display: flex;
    gap: 15px;
    background: #e7f3ff;
    border: 2px solid #0056b3;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
}

.info-icon {
    flex-shrink: 0;
    color: #0056b3;
}

.info-content {
    flex: 1;
}

.info-content strong {
    display: block;
    color: #0056b3;
    margin-bottom: 5px;
}

.info-content p {
    margin: 0;
    color: #0056b3;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Wizard Review */
.wizard-review {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
}

.wizard-review p {
    margin: 10px 0;
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
}

.wizard-review p:last-child {
    border-bottom: none;
}

/* Publisher Buttons */
.publisher-buttons {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    justify-content: center;
}

.publisher-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 40px;
    border: 3px solid #e0e0e0;
    border-radius: 12px;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 10px;
    min-width: 150px;
}

.publisher-btn:hover {
    border-color: #8B0000;
    background: #fff8f8;
}

.publisher-btn.selected {
    border-color: #8B0000;
    background: #8B0000;
    color: #ffffff;
}

.publisher-btn.selected svg {
    stroke: #ffffff;
}

.publisher-btn span {
    font-size: 1rem;
    font-weight: 600;
}

.publisher-entry {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    border: 1px solid #e0e0e0;
}

/* Assessment Summary */
.assessment-summary {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.assessment-item {
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
}

.assessment-item:last-child {
    border-bottom: none;
}

.assessment-item strong {
    display: block;
    color: #8B0000;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.assessment-item p {
    margin: 5px 0;
    color: #333;
}

.assessment-next-steps {
    background: #e8f5e9;
    border: 2px solid #4caf50;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.assessment-next-steps h4 {
    color: #2e7d32;
    margin: 0 0 10px 0;
}

.assessment-next-steps p {
    margin: 0;
    color: #2e7d32;
}

@media (max-width: 600px) {
    .publisher-buttons {
        flex-direction: column;
    }
    
    .publisher-btn {
        width: 100%;
    }
}

/* Service Options */
.service-options {
    margin-top: 30px;
}

.service-options h4 {
    color: #8B0000;
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-family: 'Merriweather', Georgia, serif;
}

.service-options > p {
    color: #666;
    margin-bottom: 20px;
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.service-card {
    background: #ffffff;
    border: 3px solid #e0e0e0;
    border-radius: 12px;
    padding: 25px 20px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    border-color: #8B0000;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(139, 0, 0, 0.15);
}

.service-icon {
    margin-bottom: 15px;
    color: #8B0000;
}

.service-card.selected .service-icon {
    color: #8B0000;
}

.service-card h5 {
    font-size: 1.1rem;
    color: #333;
    margin: 0 0 10px 0;
    font-family: 'Merriweather', Georgia, serif;
}

.service-description {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    margin: 0 0 15px 0;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    text-align: left;
    flex: 1;
}

.service-features li {
    font-size: 0.85rem;
    color: #555;
    padding: 5px 0;
    padding-left: 20px;
    position: relative;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

.service-buy-btn {
    display: block;
    width: 100%;
    padding: 12px 20px;
    background: #8B0000;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Merriweather', Georgia, serif;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
    margin-top: auto;
}

.service-buy-btn:hover {
    background: #6b0000;
    transform: translateY(-2px);
}

.service-buy-btn:active {
    transform: translateY(0);
}

@media (max-width: 900px) {
    .service-cards {
        grid-template-columns: 1fr;
    }
}
