/* styles.css */

/* --- Base Styles and Variables --- */
:root {
    --primary-color: #00c2ff;        /* Bright blue */
    --secondary-color: #7000ff;      /* Purple */
    --accent-color: #ff2a6d;         /* Pink/Red Accent */
    --dark-color: #0f172a;           /* Dark blue-gray background */
    --medium-dark-color: #1e293b;    /* Slightly lighter dark */
    --light-color: #f1f5f9;          /* Light gray/off-white text */
    --medium-light-color: #cbd5e1;   /* Medium gray text */
    --dark-border-color: rgba(255, 255, 255, 0.1); /* Subtle border */

    --font-main: 'Segoe UI', Arial, sans-serif;
    --font-heading: 'Segoe UI', Arial, sans-serif;

    --transition-fast: all 0.2s ease-in-out;
    --transition-medium: all 0.3s ease;

    --shadow-light: 0 4px 15px rgba(0, 194, 255, 0.1);
    --shadow-medium: 0 6px 20px rgba(0, 194, 255, 0.15);
}

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

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100vh;
}

#pageWrapper {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- Background Canvas --- */
#backgroundCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, var(--dark-color) 0%, #0a0a14 100%); /* Fallback */
    display: block !important; /* Ensure visibility for html2canvas */
}

/* --- Utility Classes --- */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-medium);
    cursor: pointer;
    font-size: 0.95rem;
    text-align: center;
    border: none;
}

.btn.primary {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    box-shadow: var(--shadow-light);
}

.btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.btn.secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

.icon {
    width: 18px;
    height: 18px;
    vertical-align: middle;
    margin-right: 8px;
    filter: invert(95%) sepia(5%) saturate(228%) hue-rotate(187deg) brightness(115%) contrast(87%);
}

.tag {
    display: inline-block;
    background-color: var(--medium-dark-color);
    color: var(--primary-color);
    padding: 0.2em 0.6em;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 0.5rem;
    vertical-align: middle;
}

/* --- Header --- */
.main-header {
    position: sticky;
    top: 0;
    background-color: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(10px);
    z-index: 10;
    padding: 1rem 0;
    border-bottom: 1px solid var(--dark-border-color);
    width: 100%;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: auto;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 1px;
}

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

.main-nav ul li {
    margin-left: 2.5rem;
}

.main-nav ul li a {
    color: var(--medium-light-color);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: var(--transition-fast);
    position: relative;
    padding-bottom: 5px;
}

.main-nav ul li a:hover,
.main-nav ul li a.active {
    color: var(--light-color);
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    transition: var(--transition-fast);
}

.main-nav ul li a:hover::after,
.main-nav ul li a.active::after {
    width: 100%;
}

/* --- Hero Section --- */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    text-align: center;
    width: 100%;
    padding: 2rem 0;
}

.hero .container {
    width: 100%;
    max-width: 1200px;
    padding: 0 1rem;
}

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

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--light-color);
}

.hero h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.hero-text {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: var(--medium-light-color);
}

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

/* --- About / CV Section --- */
.about-section {
    background-color: var(--medium-dark-color);
    padding: 4rem 0;
    flex-grow: 1;
}

.cv-container {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
    min-height: auto;
}

/* --- CV Sidebar --- */
.cv-sidebar {
    width: 35%;
    max-width: 380px;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--dark-border-color);
    background-color: var(--dark-color);
}

@media screen and (min-width: 993px) {
    .cv-sidebar {
        position: sticky;
        top: 100px;
    }
}

.profile-section {
    text-align: center;
    margin-bottom: 2rem;
}

.profile-pic {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: 4px solid var(--primary-color);
}

.download-btn {
    width: 100%;
    padding: 0.8rem 1rem;
    background-color: var(--primary-color);
    color: var(--dark-color);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    font-size: 1rem;
    text-decoration: none; /* remove a underline */
    display: inline-block;  /* garante que padding funcione corretamente */
    text-align: center;     /* centraliza o texto */
}


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

.contact-section,
.skills-section,
.projects-section {
    margin-bottom: 2.5rem;
}

.cv-sidebar h2 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--dark-border-color);
}

.contact-item {
    margin-bottom: 1rem;
}

.contact-item a {
    color: var(--medium-light-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: var(--transition-fast);
}

.contact-item a:hover {
    color: var(--light-color);
}

.contact-item .icon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    flex-shrink: 0;
}

.contact-item span {
    word-break: break-all;
}

.skill-category {
    margin-bottom: 1.5rem;
}

.skill-category h3 {
    font-size: 1.1rem;
    color: var(--light-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.skill {
    margin-bottom: 1rem;
}

.skill span {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: var(--medium-light-color);
}

.progress {
    background-color: var(--medium-dark-color);
    border-radius: 10px;
    height: 8px;
    overflow: hidden;
    width: 100%;
}

.progress-bar {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    height: 100%;
    border-radius: 10px;
    transition: width 0.5s ease-in-out;
}

.project-item {
    margin-bottom: 1rem;
}

.project-item a {
    text-decoration: none;
}

.project-item h3 {
    font-size: 1rem;
    font-weight: 500;
    color: var(--medium-light-color);
    transition: var(--transition-fast);
    padding: 0.5rem 0;
}

.project-item a:hover h3 {
    color: var(--primary-color);
}

/* --- CV Content --- */
.cv-content {
    width: 65%;
    flex-grow: 1;
}

.cv-content section {
    margin-bottom: 3rem;
    background-color: var(--dark-color);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--dark-border-color);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--dark-border-color);
}

.section-title .icon {
    width: 24px;
    height: 24px;
    margin-right: 12px;
    filter: invert(58%) sepia(99%) saturate(2990%) hue-rotate(168deg) brightness(100%) contrast(103%);
}

.bio {
    font-size: 1.05rem;
    color: var(--medium-light-color);
    line-height: 1.8;
}

/* Timeline Styles */
.timeline {
    position: relative;
}

.timeline-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
}

.timeline-date {
    flex-basis: 100px;
    flex-shrink: 0;
    text-align: right;
    color: var(--medium-light-color);
    font-size: 0.9rem;
    padding-top: 0.2rem;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.timeline-date span:first-child {
    font-weight: 600;
    color: var(--light-color);
}

.timeline-line {
    display: none;
}

.timeline-content {
    flex-grow: 1;
    padding-bottom: 1rem;
    border-bottom: 1px dashed var(--dark-border-color);
}

.timeline-item:last-child .timeline-content {
    border-bottom: none;
}

.timeline-content h3 {
    font-size: 1.2rem;
    color: var(--light-color);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.timeline-content p {
    font-size: 0.95rem;
    color: var(--medium-light-color);
    margin-top: 0.5rem;
}

/* Courses Section */
.courses .timeline-item {
    gap: 1rem;
    align-items: center;
}

.courses .timeline-date {
    flex-basis: 50px;
    text-align: center;
    font-weight: 600;
    color: var(--light-color);
}

.courses .timeline-content {
    padding-bottom: 0.5rem;
    border: none;
}

.courses .timeline-content h3 {
    font-size: 1rem;
    font-weight: 500;
    color: var(--medium-light-color);
    margin-bottom: 0;
}

.courses .timeline-content h3 .tag {
    margin-left: auto;
    background-color: var(--primary-color);
    color: var(--dark-color);
}

/* --- Footer --- */
.main-footer {
    background-color: var(--dark-color);
    padding: 2.5rem 0;
    margin-top: auto;
    border-top: 1px solid var(--dark-border-color);
}

.main-footer .container  .container {
    min-height: auto;
}

.footer-content {
    text-align: center;
    color: var(--medium-light-color);
    font-size: 0.9rem;
}

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

.social-links a {
    color: var(--medium-light-color);
    text-decoration: none;
    margin: 0 0.8rem;
    transition: var(--transition-fast);
}

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

/* --- Responsive Design --- */
@media (max-width: 1200px) {
    .container {
        max-width: 1000px;
    }
    .cv-container {
        gap: 2rem;
    }
    .cv-sidebar {
        width: 40%;
    }
    .cv-content {
        width: 60%;
    }
}

@media (max-width: 992px) {
    .container {
        padding: 0 1.5rem;
    }
    .hero h1 {
        font-size: 2.8rem;
    }
    .hero h2 {
        font-size: 1.4rem;
    }
    .cv-container {
        flex-direction: column;
        gap: 2.5rem;
    }
    .cv-sidebar,
    .cv-content {
        width: 100%;
        max-width: none;
    }
    .cv-sidebar {
        position: static;
    }
    .section-title {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 15px;
    }
    .main-header .container {
        flex-direction: column;
        gap: 1rem;
    }
    .main-nav ul {
        margin-top: 0.5rem;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.5rem 1.5rem;
    }
    .main-nav ul li {
        margin-left: 0;
    }
    .hero {
        padding: 4rem 0;
        min-height: 50vh;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
    .hero h2 {
        font-size: 1.2rem;
    }
    .hero-text {
        font-size: 1rem;
    }
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    .btn {
        width: 80%;
        max-width: 300px;
    }
    .cv-sidebar {
        padding: 1.5rem;
    }
    .cv-content section {
        padding: 1.5rem;
    }
    .profile-pic {
        width: 150px;
        height: 150px;
    }
    .section-title {
        font-size: 1.5rem;
    }
    .timeline-item {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    .timeline-date {
        flex-basis: auto;
        text-align: left;
        margin-bottom: 0.5rem;
        font-size: 0.85rem;
        flex-direction: row;
        gap: 0.5rem;
        align-items: center;
    }
    .timeline-content {
        padding-left: 0;
        border: none;
        padding-bottom: 0.5rem;
    }
    .timeline-item:not(:last-child) {
        border-bottom: 1px dashed var(--dark-border-color);
        padding-bottom: 1.5rem;
    }
    .courses .timeline-content h3 .tag {
        margin-left: 1rem;
    }
    .footer-content {
        font-size: 0.85rem;
    }
    .social-links a {
        margin: 0 0.5rem;
    }
}

/* --- PDF-Specific Styles --- */
@media print {
    body {
        background-color: #fff !important;
        color: #000 !important;
        font-size: 10pt !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Hide non-essential elements */
    .main-header,
    .main-footer,
    .download-btn {
        display: none !important;
    }

    /* Reset page wrapper */
    #pageWrapper {
        min-height: auto !important;
        display: block !important;
        background: none !important;
    }

    /* Ensure about-section fits */
    .about-section {
        padding: 0 !important;
        background-color: transparent !important;
        margin: 0 !important;
    }

    /* Container and CV layout */
    .container,
    .cv-container {
        max-width: 190mm !important;
        width: 100% !important;
        padding: 5mm !important;
        margin: 0 auto !important;
        display: flex !important;
        flex-direction: row !important;
        min-height: auto !important;
        box-sizing: border-box !important;
    }

    /* Sidebar */
    .cv-sidebar {
        width: 35% !important;
        max-width: 65mm !important;
        padding: 5mm !important;
        background-color: #f8f8f8 !important;
        border: 1px solid #ccc !important;
        border-radius: 0 !important;
        position: static !important;
        margin-right: 2mm !important;
        box-sizing: border-box !important;
    }

    /* Content */
    .cv-content {
        width: 65% !important;
        padding: 5mm !important;
        background-color: #fff !important;
        border: 1px solid #ccc !important;
        border-radius: 0 !important;
        box-sizing: border-box !important;
    }

    .cv-content section {
        padding: 3mm 0 !important;
        margin-bottom: 5mm !important;
        background-color: transparent !important;
        border: none !important;
    }

    /* Profile picture */
    .profile-pic {
        width: 80px !important;
        height: 80px !important;
        border: 2px solid #555 !important;
        margin: 0 auto 5mm !important;
    }

    /* Headings */
    .section-title,
    .cv-sidebar h2 {
        font-size: 12pt !important;
        color: #333 !important;
        border-bottom: 1px solid #ccc !important;
        padding-bottom: 2pt !important;
        margin-bottom: 5pt !important;
    }

    /* Hide icons */
    .section-title .icon,
    .contact-item .icon {
        display: none !important;
    }

    /* Text and links */
    a,
    .contact-item span,
    .project-item h3,
    .timeline-content p,
    .skill span {
        color: #000 !important;
        text-decoration: none !important;
    }

    /* Progress bars */
    .progress {
        background-color: #eee !important;
        height: 4pt !important;
        border-radius: 2pt !important;
    }

    .progress-bar {
        background: #00c2ff !important;
        border-radius: 2pt !important;
    }

    /* Tags */
    .tag {
        background-color: #eee !important;
        color: #333 !important;
        border: 1px solid #ccc !important;
        font-size: 8pt !important;
        padding: 1pt 3pt !important;
    }

    /* Timeline */
    .timeline-item {
        display: flex !important;
        flex-direction: row !important;
        gap: 5mm !important;
        margin-bottom: 5mm !important;
        page-break-inside: avoid !important;
    }

    .timeline-date {
        font-size: 9pt !important;
        color: #555 !important;
        font-weight: bold !important;
        text-align: right !important;
        flex-basis: 20mm !important;
    }

    .timeline-content {
        flex-grow: 1 !important;
        border: none !important;
        padding-bottom: 0 !important;
    }

    .timeline-content h3 {
        font-size: 10pt !important;
        margin-bottom: 2pt !important;
    }

    .timeline-content p {
        font-size: 9pt !important;
    }

    /* Courses */
    .courses .timeline-item {
        gap: 3mm !important;
    }

    .courses .timeline-date {
        flex-basis: 15mm !important;
        text-align: center !important;
    }

    .courses .timeline-content h3 {
        font-size: 9pt !important;
    }

    /* Page breaks */
    section,
    .timeline-item,
    .skill-category,
    h2,
    h3 {
        page-break-inside: avoid !important;
        page-break-after: avoid !important;
    }

    /* Ensure canvas image applies */
    #curriculo {
        position: relative !important;
        background: none !important;
    }
}

/* --- Pricing Section --- */
.pricing-section {
    padding: 4rem 0;
    text-align: center;
}

.pricing-section h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--medium-light-color);
    max-width: 700px;
    margin: 0 auto 3rem auto;
}

.table-style-minimal .pricing-tables {
    overflow-x: auto;
}

.table-style-minimal #pricing-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2.5rem;
    border-spacing: 0;
    background-color: transparent;
}

.table-style-minimal #pricing-table th {
    text-align: left;
    padding: 1rem 1.2rem;
    border-bottom: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    background-color: transparent;
    white-space: nowrap;
}

.table-style-minimal #pricing-table td {
    padding: 1.2rem 1.2rem;
    border-bottom: 1px solid var(--dark-border-color);
    vertical-align: middle;
    color: var(--medium-light-color);
    font-size: 0.95rem;
    line-height: 1.6;
}

.table-style-minimal #pricing-table td:first-child {
    color: var(--light-color);
    font-weight: 500;
}

.table-style-minimal #pricing-table td:nth-child(2) {
    color: var(--medium-light-color);
}

.table-style-minimal #pricing-table td:last-child {
    color: var(--primary-color);
    font-weight: 500;
    text-align: right;
    white-space: nowrap;
    font-size: 1rem;
}

.table-style-minimal #pricing-table tbody tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.03);
}

.table-style-minimal #pricing-table tbody tr:last-child td {
    border-bottom: none;
}

.table-style-minimal #pricing-table tbody tr {
    transition: background-color 0.2s ease-in-out, transform 0.2s ease-in-out;
}

.table-style-minimal #pricing-table tbody tr:hover {
    background-color: rgba(0, 194, 255, 0.1);
    transform: scale(1.01);
    cursor: default;
}

.table-style-minimal #pricing-table tbody tr:hover td:first-child {
    color: var(--light-color);
}

.table-style-minimal #pricing-table tbody tr:hover td:nth-child(2) {
    color: var(--medium-light-color);
}

.table-style-minimal #pricing-table tbody tr:hover td:last-child {
    color: var(--primary-color);
}

@media (max-width: 576px) {
    .pricing-section {
        padding: 4rem 0;
        text-align: center;
    }

    .pricing-section h1 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
        color: var(--primary-color);
    }

    .table-style-minimal #pricing-table thead {
        display: none;
    }

    .table-style-minimal #pricing-table,
    .table-style-minimal #pricing-table tbody,
    .table-style-minimal #pricing-table tr,
    .table-style-minimal #pricing-table td {
        display: block;
        width: 100%;
    }

    .table-style-minimal #pricing-table tr {
        margin-bottom: 1.5rem;
        border: 1px solid var(--dark-border-color);
        border-radius: 8px;
        padding: 1rem;
        background-color: var(--medium-dark-color);
        transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    }

    .table-style-minimal #pricing-table tbody tr:nth-child(even) {
        background-color: var(--medium-dark-color);
    }

    .table-style-minimal #pricing-table tr:hover {
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
        background-color: var(--medium-dark-color);
    }

    .table-style-minimal #pricing-table td {
        border: none;
        padding: 0.6rem 0;
        text-align: right;
        position: relative;
        padding-left: 45%;
        color: var(--medium-light-color);
        border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
    }

    .table-style-minimal #pricing-table td:last-child {
        border-bottom: none;
        padding-bottom: 0;
        color: var(--primary-color);
    }

    .table-style-minimal #pricing-table td:first-child {
        padding-top: 0;
        color: var(--light-color);
    }

    .table-style-minimal #pricing-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        width: 40%;
        padding-right: 10px;
        white-space: nowrap;
        text-align: left;
        font-weight: 600;
        color: var(--primary-color);
        font-size: 0.85rem;
    }
}

/* --- Contact Page Styles --- */

/* Add or modify in styles.css */

/* Style for Radio buttons (can be similar to checkboxes) */
.radio-group {
    display: flex;
    align-items: center;
    gap: 0.8rem; /* Space between radio and its label */
    margin-bottom: 0.5rem; /* Spacing between radio options */
}

.radio-group label {
    margin-bottom: 0; /* Override default margin */
    color: var(--medium-light-color);
    font-weight: 400;
    cursor: pointer;
}

.radio-group input[type="radio"] {
    cursor: pointer;
    width: 18px; /* Adjust size */
    height: 18px;
    accent-color: var(--primary-color); /* Modern way to color */
    vertical-align: middle;
    margin: 0; /* Reset potential default margins */
}

/* Style for the added small text hint */
.form-group small {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--medium-light-color);
    opacity: 0.8;
}

.contact-page-section {
    padding: 4rem 0;
    flex-grow: 1; /* Ensure it pushes footer down */
    background-color: var(--medium-dark-color); /* Match other sections */
}

.contact-page-section h1 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 2.5rem; /* Match hero heading */
}

/* Reusing subtitle style from pricing if available, or define here */
.contact-page-section .section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--medium-light-color);
    max-width: 700px;
    margin: 0 auto 3rem auto;
}


#contactForm {
    max-width: 500px; /* Adjust width as needed */
    margin: 2rem auto 2rem auto; /* Center form */
    padding: 2rem;
    background-color: var(--dark-color); /* Darker background for form */
    border-radius: 12px;
    border: 1px solid var(--dark-border-color);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--light-color);
    font-weight: 500;
    font-size: 1.2rem;
}

/* Checkbox styling */
.contact-preference p {
    color: var(--light-color);
    font-weight: 500;
    margin-bottom: 1rem;
}

.contact-preference {
    display: flex;
    flex-direction: column; /* Stack label and options */
    gap: 0.5rem; /* Space between checkbox options */
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.8rem; /* Space between checkbox and its label */
}

.checkbox-group label {
    margin-bottom: 0; /* Override default margin */
    color: var(--medium-light-color);
    font-weight: 400;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    cursor: pointer;
    width: 18px; /* Adjust size */
    height: 18px;
    accent-color: var(--primary-color); /* Modern way to color checkboxes */
    vertical-align: middle;
}

/* Textarea styling */
.message-area textarea {
    width: 100%;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--dark-border-color);
    background-color: var(--medium-dark-color);
    color: var(--light-color);
    font-family: var(--font-main);
    font-size: 1rem;
    resize: vertical; /* Allow vertical resizing */
    min-height: 120px; /* Minimum height */
    transition: border-color var(--transition-fast);
}

.message-area textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 194, 255, 0.2); /* Optional focus indicator */
}

/* Submit button alignment */
.form-submit {
    text-align: center; /* Center button */
    margin-top: 2rem;
}

.form-submit .btn {
    padding: 0.9rem 2.5rem; /* Slightly larger button */
}

#replyTo {
    font-size: 12px;        /* Make font larger */

}

#replyTo::placeholder {
    color: #7000ff;      /* Light grey placeholder text */
    font-style: bold; /* Italicize placeholder */
    font-size: 14px; /* Smaller placeholder text */
}

.language-selector {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    display: flex;
    align-items: center;
    z-index: 20;
    gap: 0.5rem;
}

.language-btn {
    background-color: var(--medium-dark-color);
    color: var(--medium-light-color);
    border: 1px solid var(--dark-border-color);
    padding: 0.4rem 0.7rem;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

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

.language-btn.active {
    background-color: var(--primary-color);
    color: var(--dark-color);
    font-weight: 600;
}

@media (max-width: 768px) {
    .language-selector {
        top: auto;
        right: auto;
        position: relative;
        justify-content: center;
        margin-top: 0.5rem;
    }
}