/* General Body & Font Styling */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

/* Hides file inputs by moving them off-screen */
input[type="file"] {
    position: absolute;
    left: -9999px;
    top: -9999px;
    opacity: 0;
}

/* Utility class to hide elements */
.hidden {
    display: none;
}

/* Container for centered content */
main, header, footer {
    max-width: 700px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Styling */
header {
    background-color: #003366;
    color: #fff;
    padding-top: 30px;
    padding-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

header h1 {
    margin: 0;
    font-size: 2.5em;
    text-align: left;
}

header .subtitle {
    margin: 0;
    font-size: 1.2em;
    font-weight: 300;
    text-align: left;
}

/* Disclaimer Box */
.disclaimer {
    background-color: #fffbe6;
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.disclaimer h2 {
    color: #d32f2f;
    margin-top: 0;
}

/* Audio Player Section */
.audio-section {
    background-color: #e3f2fd;
    border: 2px solid #2196f3;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    margin-bottom: 30px;
}

.audio-section button {
    display: inline-block;
    width: 100%;
    padding: 20px;
    font-size: 1.5em;
    font-weight: bold;
    cursor: pointer;
    background-color: #d32f2f;
    color: white;
    border: none;
    border-radius: 8px;
    margin-bottom: 15px;
    transition: background-color 0.3s;
    box-sizing: border-box;
}

.audio-section button:hover {
    background-color: #b71c1c;
}

.script {
    margin-top: 20px;
    background-color: #fff;
    padding: 10px;
    border-radius: 5px;
    text-align: left;
}

/* Step-by-Step Guide Styling */
.steps h2 {
    text-align: center;
    border-bottom: 2px solid #ccc;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.step {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.step h3 {
    margin-top: 0;
    color: #003366;
}

footer {
    text-align: center;
    color: #444;
    margin-top: 40px;
}

/* Improved Link Styling for Accessibility */
a {
    color: #990000;
    text-decoration: underline;
    font-weight: 600;
}

a:hover {
    color: #660000;
    text-decoration: underline;
}

/* Language Toggle Button Styling */
#lang-toggle {
    background-color: #fff;
    color: #003366;
    border: 2px solid #003366;
    padding: 8px 16px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
    margin-left: 15px;
}

#lang-toggle:hover {
    background-color: #f0f0f0;
}

/* Emergency Contact and Prominent Button */
.emergency-contact {
    text-align: center;
    margin-top: 40px;
    padding: 30px;
    background-color: #fff;
    border-top: 3px solid #d32f2f;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.button-prominent {
    display: inline-block;
    width: 100%;
    box-sizing: border-box;
    background-color: #0056b3;
    color: #fff;
    padding: 15px 30px;
    font-size: 1.5em;
    font-weight: bold;
    text-decoration: none;
    border-radius: 8px;
    margin-top: 10px;
    transition: background-color 0.3s ease;
}

.button-prominent:hover {
    background-color: #003366;
    color: #fff;
}

/* Record Button */
.button-secondary {
    display: inline-block;
    width: 100%;
    box-sizing: border-box;
    background-color: #6c757d;
    color: #fff;
    padding: 15px 25px;
    font-size: 1.3em;
    font-weight: bold;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    margin-top: 15px;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.button-secondary:hover {
    background-color: #5a6268;
}
