/* Base Styles */
:root {
    --primary-color: #ffcc00;
    --primary-dark: #ffaa00;
    --secondary-color: #7b68ee;
    --secondary-dark: #6a5acd;
    --dark-color: #333;
    --light-color: #fff;
    --gray-color: #f5f5f5;
    --gray-dark: #e0e0e0;
    --font-primary: 'Arial', sans-serif;
    --font-heading: 'Arial', sans-serif;
    --shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--dark-color);
    background-image: url('../images/A_high-resolution,_visually_stunning_background_im.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: var(--secondary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mt-1 {
    margin-top: 1rem;
}

.mt-2 {
    margin-top: 2rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: var(--secondary-color);
    color: var(--light-color);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    font-weight: bold;
    transition: var(--transition);
    font-size: 1rem;
}

.btn:hover {
    background: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    color: var(--light-color);
}

.btn-primary {
    background: var(--primary-color);
    color: var(--dark-color);
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: var(--dark-color);
}

.btn-secondary {
    background: var(--secondary-color);
}

.btn-secondary:hover {
    background: var(--secondary-dark);
}

/* Form Elements */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

input, select, textarea {
    width: 100%;
    padding: 0.7rem;
    border: 1px solid var(--gray-dark);
    border-radius: 4px;
    font-size: 1rem;
    font-family: var(--font-primary);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(255, 204, 0, 0.25);
}

.form-error {
    color: #ff3333;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    min-height: 1.2rem;
}

/* Navbar */
.navbar {
    background-color: rgba(0, 0, 0, 0.8);
    padding: 0.5rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.logo {
    height: 50px;
    margin-right: 1rem;
}

.navbar-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--light-color);
    font-size: 1.5rem;
    cursor: pointer;
}

.navbar-menu {
    display: flex;
}

.navbar-nav {
    display: flex;
    list-style: none;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: var(--light-color);
    padding: 1rem;
    display: block;
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
}

/* Dropdown Menu */
.user-menu {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 4px;
    box-shadow: var(--shadow);
    width: 200px;
    display: none;
    z-index: 10;
}

.user-menu:hover .dropdown-menu {
    display: block;
}

.dropdown-header {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown-header p {
    color: var(--light-color);
    margin-bottom: 0.5rem;
}

.dropdown-item {
    padding: 0.7rem 1rem;
    color: var(--light-color);
    display: block;
    transition: var(--transition);
}

.dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    padding: 6rem 0;
    text-align: center;
    color: var(--light-color);
    background-color: rgba(0, 0, 0, 0.5);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Features Section */
.features {
    padding: 5rem 0;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.9);
}

.features h2 {
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

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

.feature-card {
    padding: 2rem;
    border-radius: 8px;
    background-color: var(--light-color);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
}

/* Try Free Section */
.try-free {
    padding: 5rem 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: var(--light-color);
}

.try-free-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.try-free h2 {
    margin-bottom: 1rem;
}

.try-free p {
    margin-bottom: 2rem;
}

.free-story-form {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    text-align: left;
}

.story-output {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 8px;
    color: var(--dark-color);
    text-align: left;
    margin-top: 2rem;
    display: none;
}

.story-output p {
    margin-bottom: 1rem;
}

/* Testimonials Section */
.testimonials {
    padding: 5rem 0;
    background-color: rgba(255, 255, 255, 0.9);
    text-align: center;
}

.testimonials h2 {
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.testimonials-slider {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.testimonial-card {
    background-color: var(--light-color);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    flex: 1;
    min-width: 300px;
    max-width: 350px;
}

.testimonial-content {
    font-style: italic;
    margin-bottom: 1rem;
}

.testimonial-author {
    text-align: right;
}

/* Call to Action Section */
.cta {
    padding: 5rem 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: var(--light-color);
    text-align: center;
}

.cta h2 {
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.cta p {
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Footer */
.footer {
    background-color: rgba(0, 0, 0, 0.8);
    color: var(--light-color);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo .logo {
    height: 50px;
    margin-bottom: 1rem;
}

.footer-links h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 0.5rem;
}

.footer-links ul li a {
    color: var(--light-color);
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--primary-color);
}

.footer-newsletter h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.footer-newsletter p {
    margin-bottom: 1rem;
}

.newsletter-form {
    display: flex;
}

.newsletter-form input {
    flex: 1;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border: none;
}

.newsletter-form button {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    overflow: auto;
}

.modal-content {
    background-color: rgba(0, 0, 0, 0.8);
    margin: 10vh auto;
    padding: 2rem;
    border-radius: 8px;
    max-width: 500px;
    position: relative;
    color: var(--light-color);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--light-color);
}

.modal-close:hover {
    color: var(--primary-color);
}

/* Close button styles */
.close-modal {
    font-size: 28px;
    padding: 8px 12px;
    position: absolute;
    top: 10px;
    right: 15px;
    cursor: pointer;
    color: #333;
    background-color: #f2f2f2;
    border-radius: 50%;
    line-height: 20px;
    width: 40px;
    height: 40px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.close-modal:hover {
    background-color: #ddd;
}

.modal-footer {
    margin-top: 1.5rem;
    text-align: center;
}

/* Story modal container specific styling */
.modal-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  overflow: auto;
}

/* This is the critical fix - make the modal visible when container is displayed */
.modal-container[style*="display: block"] .modal {
  display: block !important;
}

/* Story modal content improvements */
.story-modal .modal-content {
  background-color: rgba(255, 255, 255, 0.95);
  color: var(--dark-color);
  max-width: 800px;
  margin: 10vh auto;
}

/* Add scrolling for longer stories */
.story-modal .modal-body {
  max-height: 70vh;
  overflow-y: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar-toggle {
        display: block;
    }

    .navbar-menu {
        position: fixed;
        top: 0;
        right: -300px;
        width: 250px;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.9);
        transition: var(--transition);
        flex-direction: column;
        padding-top: 3rem;
        z-index: 101;
    }

    .navbar-menu.active {
        right: 0;
    }

    .navbar-nav {
        flex-direction: column;
    }

    .nav-link {
        padding: 1rem 2rem;
    }

    .dropdown-menu {
        position: static;
        width: 100%;
        display: none;
        box-shadow: none;
    }

    .user-menu:hover .dropdown-menu {
        display: none;
    }

    .user-menu.active .dropdown-menu {
        display: block;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
        margin-bottom: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .btn {
        width: 100%;
        margin-bottom: 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-logo {
        align-items: center;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form input {
        border-radius: 4px;
        margin-bottom: 1rem;
    }

    .newsletter-form button {
        border-radius: 4px;
        width: 100%;
    }
}

/* Create Story Page */
.story-creator {
    padding: 3rem 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: var(--light-color);
}

.story-form-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.story-options, .premium-options {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 2rem;
    border-radius: 8px;
}

.story-preview {
    margin-top: 2rem;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 8px;
    color: var(--dark-color);
}

.story-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: center;
}

/* Pricing Page */
.pricing-header {
    padding: 3rem 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: var(--light-color);
    text-align: center;
}

.pricing-plans {
    padding: 5rem 0;
    background-color: rgba(255, 255, 255, 0.9);
}

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

.pricing-card {
    background-color: var(--light-color);
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.pricing-header {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 2rem;
    text-align: center;
}

.pricing-card.featured .pricing-header {
    background-color: var(--primary-color);
    color: var(--dark-color);
}

.pricing-price {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 1rem 0;
}

.pricing-body {
    padding: 2rem;
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
}

.pricing-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--gray-dark);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

/* Table Styles */
.table-container {
    overflow-x: auto;
    margin-bottom: 2rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--light-color);
    box-shadow: var(--shadow);
    border-radius: 8px;
    overflow: hidden;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--gray-dark);
}

th {
    background-color: var(--dark-color);
    color: var(--light-color);
}

tr:nth-child(even) {
    background-color: var(--gray-color);
}

tr:hover {
    background-color: var(--gray-dark);
}

/* Story Results Page */
.story-result {
    padding: 3rem 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: var(--light-color);
}

.story-content {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
    color: var(--dark-color);
}

.story-content h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.story-content p {
    margin-bottom: 1rem;
    text-indent: 1.5em;
}

.story-image {
    display: block;
    margin: 2rem auto;
    max-width: 100%;
    border-radius: 8px;
    box-shadow: var(--shadow);
    opacity: 0;
    animation: fadeIn 0.5s ease-in-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.story-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
    margin: 0 auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    text-align: center;
}

/* Story image placeholder styles */
.story-image-placeholder {
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
    text-align: center;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.story-image-container {
    margin: 2rem 0;
    text-align: center;
}

.image-error {
    color: #f44336;
    font-style: italic;
    margin-top: 1rem;
}

/* Message for preparing illustrations */
.preparing-illustrations-message {
    background-color: rgba(255, 204, 0, 0.1);
    border-left: 4px solid var(--primary-color);
    padding: 1rem;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
    font-weight: bold;
    border-radius: 4px;
    transition: opacity 0.3s ease;
}

/* Loading info messages */
.loading-info {
    margin-top: 1.5rem;
    color: #555;
    font-style: italic;
    max-width: 80%;
}

.loading-info-secondary {
    margin-top: 0.5rem;
    color: #777;
    font-size: 0.9rem;
    max-width: 80%;
}

/* Account Page */
.account-section {
    padding: 3rem 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: var(--light-color);
}

.account-card {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.account-info {
    margin-bottom: 2rem;
}

.account-info p {
    margin-bottom: 0.5rem;
}

.account-tabs {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 2rem;
}

.account-tab {
    padding: 1rem 2rem;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}

.account-tab.active {
    border-bottom-color: var(--primary-color);
    color: var(--primary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Story Cards for My Stories */
.story-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.story-card {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.story-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.story-card-header {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 1rem;
}

.story-card-body {
    padding: 1rem;
    color: var(--dark-color);
}

.story-card-footer {
    padding: 1rem;
    border-top: 1px solid var(--gray-dark);
    display: flex;
    justify-content: space-between;
}

.story-card-footer button {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Print Styles */
@media print {
    body * {
        visibility: hidden;
    }
    
    .story-content, .story-content * {
        visibility: visible;
    }
    
    .story-content {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        background: white;
        color: black;
        box-shadow: none;
    }
    
    .story-actions {
        display: none;
    }
}

/* Error and Notification Messages */
.notification {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.notification.success {
    background-color: rgba(76, 175, 80, 0.1);
    border-left: 4px solid #4CAF50;
    color: #4CAF50;
}

.notification.error {
    background-color: rgba(244, 67, 54, 0.1);
    border-left: 4px solid #F44336;
    color: #F44336;
}

.notification.info {
    background-color: rgba(33, 150, 243, 0.1);
    border-left: 4px solid #2196F3;
    color: #2196F3;
}

.notification.warning {
    background-color: #fff3cd;
    border-left: 4px solid var(--primary-color);
    color: #856404;
    padding: 1rem;
    border-radius: 4px;
}

/* Story Length Warning Styles */
.story-length-warning {
    margin: 1.5rem 0;
}

.story-length-warning .notification.warning {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.story-length-warning .notification.warning p {
    margin: 0;
    flex: 1;
    padding-right: 1rem;
}

.story-length-warning #regenerateStoryBtn {
    white-space: nowrap;
    background-color: var(--primary-color);
    color: var(--dark-color);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.story-length-warning #regenerateStoryBtn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Make the story length warning responsive */
@media (max-width: 768px) {
    .story-length-warning .notification.warning {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .story-length-warning .notification.warning p {
        margin-bottom: 1rem;
        padding-right: 0;
    }
    
    .story-length-warning #regenerateStoryBtn {
        width: 100%;
    }
}

/* File Input Styling */
.file-input-container {
    position: relative;
    margin-bottom: 1rem;
}

.file-input {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-input-label {
    display: block;
    padding: 0.8rem 1.5rem;
    background-color: var(--secondary-color);
    color: var(--light-color);
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.file-input-label:hover {
    background-color: var(--secondary-dark);
}

.file-name {
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

/* CSS Additions for New Pages */

/* My Stories Page */
.my-stories-section {
    padding: 3rem 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: var(--light-color);
}

.user-stories-container {
    margin: 2rem 0;
}

/* Story View Modal */
.story-view-content {
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
}

/* Payment Success Page */
.payment-success, .payment-cancel {
    padding: 5rem 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: var(--light-color);
    text-align: center;
}

.success-content, .cancel-content {
    max-width: 800px;
    margin: 0 auto;
}

.success-icon, .cancel-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
}

.success-icon i {
    color: var(--primary-color);
}

.cancel-icon i {
    color: #f44336;
}

.payment-details {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.next-steps, .options-container {
    margin: 3rem 0;
}

.next-steps h2, .options-container h2 {
    margin-bottom: 2rem;
}

.next-steps-grid, .options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.next-step-card, .option-card {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
}

.step-icon, .option-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.back-links {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* FAQ Page */
.faq-header {
    padding: 3rem 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: var(--light-color);
    text-align: center;
}

.faq-content {
    padding: 3rem 0;
    background-color: rgba(255, 255, 255, 0.9);
}

.faq-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.faq-category {
    padding: 0.7rem 1.5rem;
    background: var(--dark-color);
    color: var(--light-color);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: var(--transition);
}

.faq-category:hover {
    background: var(--secondary-dark);
}

.faq-category.active {
    background: var(--primary-color);
    color: var(--dark-color);
}

.faq-section {
    display: none;
    margin-bottom: 3rem;
}

.faq-section.active {
    display: block;
}

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid var(--gray-dark);
    border-radius: 4px;
    overflow: hidden;
}

.faq-question {
    padding: 1rem;
    background: var(--light-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-question h3 {
    margin: 0;
}

.faq-answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background: var(--gray-color);
}

.faq-answer.active {
    padding: 1rem;
    max-height: 500px;
}

.faq-contact {
    text-align: center;
    padding: 2rem;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    margin-top: 3rem;
}

.faq-contact h2 {
    margin-bottom: 1rem;
}

.faq-contact p {
    margin-bottom: 1.5rem;
}

/* Account Page Specific Styles */
.account-tabs {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.account-tab {
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    color: var(--light-color);
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.account-tab:first-child {
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

.account-tab:last-child {
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

.account-tab.active {
    background: var(--primary-color);
    color: var(--dark-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.form-help {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.25rem;
}

/* Credit History */
.credit-history {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 4px;
}

/* Legal Pages Styles */
.legal-content {
    padding: 3rem 0;
    background-color: rgba(255, 255, 255, 0.9);
}

.legal-document {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background-color: var(--light-color);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.legal-date {
    color: #666;
    margin-bottom: 2rem;
    font-style: italic;
}

.legal-section {
    margin-bottom: 2rem;
}

.legal-section h2 {
    border-bottom: 1px solid var(--gray-dark);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.legal-section h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.legal-section ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.legal-section ul li {
    margin-bottom: 0.5rem;
}

/* Responsive styles for new pages */
@media (max-width: 768px) {
    .faq-categories {
        flex-direction: column;
    }
    
    .account-tabs {
        flex-direction: column;
    }
    
    .account-tab {
        width: 100%;
        border-radius: 4px;
        margin-bottom: 0.5rem;
    }
    
    .next-steps-grid, .options-grid {
        grid-template-columns: 1fr;
    }
    
    .back-links {
        flex-direction: column;
    }
    
    .legal-document {
        padding: 1rem;
    }
}