/* Contact Page Specific Styles */

.back-btn {
    position: fixed;
    top: 1.5rem;
    left: 1.5rem;
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    z-index: 1000;
    font-size: 1.2rem;
}

.back-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.contact-container {
    width: 100%;
    max-width: 500px;
    padding: 2rem;
    text-align: center;
    z-index: 1;
    position: relative;
    margin-top: 8vh;
    /* Reduced from 12vh to balance spacing */
    margin-bottom: 5vh;
    margin-left: auto;
    margin-right: auto;
    /* Center vertically if flex parent allows, or just standard block centering */
    border: 1px solid transparent;
    /* Prevent layout shift when border appears */
}

.contact-container header {
    margin-bottom: 2rem;
}

.contact-container h1 {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.contact-container .subtitle {
    font-size: 1.05rem;
    color: var(--accent-color);
    font-weight: 300;
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    width: 100%;
}

.form-input {
    width: 100%;
    padding: 1rem 1.2rem;
    background-color: var(--btn-bg);
    border: 1px solid var(--btn-border);
    border-radius: 12px;
    color: var(--text-color);
    font-size: 1rem;
    font-family: var(--font-sans);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-input:focus {
    outline: none;
    background-color: var(--btn-hover-bg);
    border-color: rgba(255, 255, 255, 0.3);
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
    /* Reduced from 120px */
}

.submit-btn {
    padding: 1.2rem 1.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 500;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    margin-top: 0.5rem;
}

.submit-btn:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.submit-btn:active {
    transform: translateY(0);
}

.form-status {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 12px;
    font-size: 0.95rem;
    display: none;
}

.form-status.success {
    display: block;
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.3);
    color: #4ade80;
}

.form-status.error {
    display: block;
    background: rgba(248, 113, 113, 0.1);
    border: 1px solid rgba(248, 113, 113, 0.3);
    color: #f87171;
}

/* Report Mode Toggle */
.mode-toggle-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.toggle-label {
    font-size: 0.9rem;
    color: var(--text-color);
    font-weight: 500;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.2);
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
}

input:checked+.slider {
    background-color: #ef4444;
    /* Red for report mode */
}

input:checked+.slider:before {
    transform: translateX(24px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Report Mode Theme */
/* Report Mode Theme */
body.report-mode {
    --accent-color: #ff4444;
    --text-color: #ffffff;
    --bg-color: #1a0505;
}

/* Force background change on body and html */
body.report-mode,
html:has(body.report-mode) {
    background: #1a0505 !important;
    /* Solid uniform color */
    background-color: #1a0505 !important;
    background-attachment: fixed !important;
    min-height: 100vh;
    margin: 0;
}

/* Override Footer for Report Mode */
body.report-mode .footer {
    background: transparent !important;
    /* No gradient */
}

/* Adjust container for report mode */
body.report-mode .contact-container {
    background: rgba(40, 10, 10, 0.6);
    /* Removed border to eliminate top/bottom lines */
    border: none;
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.1);
    /* Increased padding significantly to clear footer */
    padding-bottom: 6rem;
}

/* Restore subtitle visibility to maintain composition */
body.report-mode .subtitle {
    display: block;
    color: rgba(255, 200, 200, 0.8);
    /* Pale red for subtitle */
}

body.report-mode .contact-container h1 {
    /* Changed to white as requested */
    color: #ffffff;
    text-shadow: 0 0 20px rgba(255, 68, 68, 0.4);
}

body.report-mode .form-input {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 68, 68, 0.3);
    color: white;
}

body.report-mode .form-input:focus {
    border-color: #ff4444;
    box-shadow: 0 0 15px rgba(255, 68, 68, 0.2);
}

body.report-mode .submit-btn {
    background: linear-gradient(45deg, #991b1b, #ef4444);
    border: none;
    color: white;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
    /* Increased margin to push footer down */
    margin-bottom: 3rem;
}

body.report-mode .submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.5);
}

body.report-mode .back-btn {
    background: rgba(40, 10, 10, 0.8);
    border-color: rgba(255, 68, 68, 0.3);
}

body.report-mode .back-btn:hover {
    border-color: #ff4444;
    color: #ff4444;
}

/* Report Fields */
.file-label {
    display: block;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px dashed rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
}

.file-label:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-color);
}

.file-input {
    display: none;
}

.file-name {
    display: block;
    font-size: 0.8rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    text-align: center;
}

.location-btn {
    width: 100%;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.location-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.location-btn.success {
    background: rgba(74, 222, 128, 0.2);
    border-color: #4ade80;
    color: #4ade80;
}

.location-status {
    font-size: 0.8rem;
    margin-top: 0.5rem;
    text-align: center;
    min-height: 1.2em;
}

/* Responsive */
@media (max-width: 480px) {
    .contact-container {
        padding: 1.2rem;
        margin-top: 8vh;
    }

    .contact-container h1 {
        font-size: 2.6rem;
    }

    .contact-container header {
        margin-bottom: 1.5rem;
    }

    .back-btn {
        top: 1rem;
        left: 1rem;
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
}