:root {
    --primary-color: #0084ff;
    --secondary-color: #ffa840;
    --primary-hover: #0069cc;
    --secondary-hover: #ff9926;
    --primary-light: rgba(0, 132, 255, 0.1);
    --secondary-light: rgba(255, 168, 64, 0.1);
    --background-color: #f7f9fc;
    --card-background: #ffffff;
    --text-color: #333;
    --light-text: #666;
    --border-radius: 8px;
    --box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    --transition: all 0.2s ease;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: var(--background-color);
    color: var(--text-color);
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

header {
    text-align: center;
    margin-bottom: 40px;
}

.logo-image {
    height: 60px;
    margin-bottom: 15px;
}

h1 {
    font-size: 2.5em;
    color: var(--text-color);
    margin-bottom: 10px;
}

.subtitle {
    color: var(--light-text);
    font-size: 1.1em;
}

section {
    background: var(--card-background);
    border-radius: var(--border-radius);
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

section:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

h2 {
    margin-bottom: 20px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

h2 i {
    color: var(--primary-color);
}

.chat-options {
    margin: 40px 0;
}

.options-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

.option-button {
    flex: 1;
    min-width: 200px;
    max-width: 250px;
    padding: 20px;
    border: none;
    border-radius: var(--border-radius);
    background: var(--primary-color);
    color: white;
    box-shadow: var(--box-shadow);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.option-button i {
    font-size: 1.5em;
    color: white;
}

.option-button span {
    font-size: 1.2em;
    font-weight: bold;
    color: white;
}

.button-desc {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9em;
}

.option-button:disabled {
    opacity: 0.8;
    cursor: wait;
}

.option-button:hover:not(:disabled) {
    background: var(--primary-hover);
    transform: translateY(-3px);
}

.guidelines ul {
    list-style: none;
}

.guidelines li {
    margin: 15px 0;
    color: var(--light-text);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 0;
}

.guidelines i {
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}

.guidelines li:first-child {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.1em;
    padding: 8px 12px;
    background: var(--primary-light);
    border-radius: var(--border-radius);
    margin-bottom: 20px;
}

footer {
    text-align: center;
    margin-top: 40px;
    color: var(--light-text);
    padding: 20px 0;
    border-top: 1px solid #eee;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 15px;
}

.footer-links a {
    color: var(--light-text);
    text-decoration: none;
    transition: var(--transition);
    padding: 5px 0;
}

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

/* Resources Section */
.resources-section {
    margin: 30px 0;
    padding: 30px;
    background-color: var(--card-background);
}

.resources-section h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
    text-align: center;
}

.resources-section p {
    text-align: center;
    margin-bottom: 25px;
    color: var(--light-text);
}

.resources-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.resource-card {
    background-color: var(--card-background);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    align-items: stretch;
    border: 1px solid #f0f0f0;
}

.resource-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.resource-icon {
    width: 70px;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.resource-content {
    padding: 20px;
    flex-grow: 1;
}

.resource-content h3 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 10px;
}

.resource-content p {
    color: var(--light-text);
    margin-bottom: 15px;
    text-align: left;
}

.resource-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    gap: 5px;
}

.resource-link:hover {
    color: var(--primary-hover);
}

.resource-link i {
    transition: var(--transition);
}

.resource-link:hover i {
    transform: translateX(3px);
}

/* Features Section */
.features-section {
    padding: 30px;
}

.features-section h2 {
    color: var(--primary-color);
    margin-bottom: 25px;
}

.features-section h3 {
    color: var(--primary-color);
    margin: 25px 0 15px;
    font-size: 1.4em;
}

.features-section p {
    margin-bottom: 15px;
    line-height: 1.7;
    color: var(--text-color);
}

.features-section ul {
    list-style: none;
    margin: 20px 0;
}

.features-section li {
    margin: 12px 0;
    padding-left: 25px;
    position: relative;
}

.features-section li:before {
    content: "\f00c";
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--primary-color);
    position: absolute;
    left: 0;
    top: 2px;
}

.features-section strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding: 20px 15px;
    }

    h1 {
        font-size: 2em;
    }

    section {
        padding: 20px;
    }

    .options-container {
        flex-direction: column;
        align-items: center;
    }

    .option-button {
        width: 100%;
        max-width: 300px;
    }

    .resources-container {
        grid-template-columns: 1fr;
    }

    .resource-card {
        width: 100%;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 15px;
    }
}

/* Terms Popup Styles */
.terms-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.popup-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease-out;
}

.popup-header {
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.popup-header h2 {
    margin: 0;
    font-size: 1.5em;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-button {
    background: none;
    border: none;
    font-size: 1.5em;
    color: var(--light-text);
    cursor: pointer;
    padding: 5px;
    transition: all 0.3s ease;
}

.close-button:hover {
    color: var(--text-color);
    transform: rotate(90deg);
}

.popup-body {
    padding: 25px;
    max-height: calc(100vh - 250px);
    overflow-y: auto;
}

.term-item {
    margin-bottom: 25px;
    display: flex;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.term-item:hover {
    background: #f0f2f5;
}

.checkbox-wrapper {
    position: relative;
    width: 24px;
    height: 24px;
}

.checkbox-wrapper input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    width: 24px;
    height: 24px;
    background: white;
    border: 2px solid #ddd;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.checkbox-wrapper input:checked ~ .checkmark {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.checkmark:after {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    display: none;
    color: white;
    font-size: 14px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.checkbox-wrapper input:checked ~ .checkmark:after {
    display: block;
}

.term-text {
    flex: 1;
}

.term-text strong {
    display: block;
    margin-bottom: 5px;
    color: var(--text-color);
}

.term-text p {
    color: var(--light-text);
    font-size: 0.95em;
    margin-bottom: 5px;
}

.popup-footer {
    padding: 20px 25px;
    border-top: 1px solid #eee;
    text-align: right;
}

.accept-button {
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    background: var(--primary-color);
    color: white;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.accept-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    background: #ccc;
}

.accept-button:not(:disabled):hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

@keyframes slideIn {
    from {
        transform: translate(-50%, -60%);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%);
        opacity: 1;
    }
}

/* Loading state styles */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 100%;
}

.loading-state i {
    font-size: 1.5em;
    color: var(--primary-color);
}

.loading-state span {
    font-size: 1.2em;
    font-weight: bold;
    color: var(--text-color);
}

.loading-state small {
    color: var(--light-text);
    font-size: 0.9em;
}

/* Loading overlay styles */
.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.loading-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    color: white;
}

.loading-content i {
    font-size: 3em;
    color: var(--primary-color);
}

.loading-content span {
    font-size: 1.5em;
    font-weight: 500;
}

/* Safety link */
.safety-link {
    color: var(--primary-color);
}

.safety-link:hover {
    color: var(--primary-hover);
}

/* Terms and Privacy links */
.terms-link, .privacy-link {
    color: var(--primary-color);
}

.terms-link:hover, .privacy-link:hover {
    color: var(--primary-hover);
}

/* Resources Section */
.resources-section {
    margin: 30px 0;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.resources-section h2 {
    color: #333;
    margin-bottom: 15px;
    text-align: center;
}

.resources-section p {
    text-align: center;
    margin-bottom: 25px;
    color: #555;
}

.resources-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.resource-card {
    flex: 1 1 calc(50% - 20px);
    min-width: 250px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: stretch;
}

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

.resource-icon {
    width: 80px;
    background-color: #0084ff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.resource-content {
    padding: 20px;
    flex-grow: 1;
}

.resource-content h3 {
    color: #0084ff;
    margin-top: 0;
    margin-bottom: 10px;
}

.resource-content p {
    color: #555;
    margin-bottom: 15px;
    text-align: left;
}

.resource-link {
    display: inline-block;
    color: #0084ff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.resource-link:hover {
    color: #0059b3;
    text-decoration: underline;
}

.resource-link i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.resource-link:hover i {
    transform: translateX(5px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .resources-container {
        flex-direction: column;
    }
    
    .resource-card {
        width: 100%;
    }
} 