@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600&display=swap');

/* Color Palette:
Rich Black (#0A0A0A)
Golden Bronze (#B8860B)
Lighter Gold (#DAA520)
Dark Bronze (#8B4513)
Off White (#F5F5DC)
*/

body {
    margin: 0;
    padding: 0;
    background-color: #0A0A0A; /* Rich Black background */
    font-family: 'Open Sans', sans-serif;
    color: #F5F5DC; /* Off White text */
    line-height: 1.5;
}

h1, h2, h3 {
    color: #F5F5DC;
    margin-bottom: 1rem;
    font-weight: 600;
}

h1 {
    font-size: 2rem;
}
h2 {
    font-size: 1.5rem;
}
h3 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
}

.intro-text {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

p.feedback-label {
    margin-top: 2rem;
    font-weight: 600;
    font-size: 1.1rem;
}

a {
    color: #DAA520; /* Lighter Gold */
    text-decoration: none;
}
a:hover {
    color: #B8860B; /* Golden Bronze */
}

.container {
    max-width: 700px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: #0A0A0A; /* Keep dark background */
    border-radius: 4px;
    border: 1px solid #8B4513; /* Dark Bronze border for container */
}

label {
    display: block;
    font-weight: 600;
    margin-top: 1.5rem;
    font-size: 1.1rem;
}

textarea, input[type="text"], input[type="email"], input[type="submit"] {
    font-size: 1rem;
    padding: 0.5rem;
    margin-top: 0.5rem;
    border: 1px solid #8B4513; /* Dark Bronze border */
    border-radius: 4px;
    background-color: #0A0A0A;
    color: #F5F5DC;
    width: 100%;
    box-sizing: border-box;
}

textarea:focus, input[type="text"]:focus, input[type="email"]:focus {
    outline: none;
    border-color: #B8860B; /* Golden Bronze focus */
}

input[type="submit"] {
    width: auto;
    background-color: #B8860B; /* Golden Bronze for primary buttons */
    color: #0A0A0A; /* Dark text on gold button */
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 1rem;
}
input[type="submit"]:hover {
    background-color: #DAA520; /* Lighter Gold hover */
}

table {
    border-collapse: collapse;
    margin-bottom: 1rem;
    width: 100%;
    margin-top: 1rem;
}

th, td {
    text-align: left;
    padding: 0.5rem;
    vertical-align: top;
    border-bottom: 1px solid #8B4513;
}

th {
    background-color: #8B4513; /* Dark Bronze header */
    color: #F5F5DC;
    font-weight: 600;
}

hr {
    border: 0;
    border-top: 1px solid #8B4513;
    margin: 2rem 0;
}

pre {
    background-color: #0A0A0A;
    padding: 1rem;
    border-radius: 4px;
    border: 1px solid #8B4513;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-size: 1rem;
}

/* HEADERS IN ADVICE CONTENT */
.advice-content h1, .advice-content h2, .advice-content h3 {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    color: #F5F5DC;
    font-weight: 600;
}

/* Loading Spinner */
.spinner {
    display: none;
    text-align: center;
    margin-top: 2rem;
    font-size: 1.2rem;
    color: #DAA520; /* Lighter Gold for spinner text */
}

/* Email form at the bottom */
.email-form {
    margin-top: 2rem;
    border: 1px solid #8B4513;
    padding: 1rem;
    border-radius: 4px;
    background-color: #0A0A0A;
}

.email-form h2 {
    margin-top: 0;
    font-size: 1.5rem;
}
.email-form input[type="email"] {
    margin-bottom: 1rem;
}
.email-form input[type="submit"] {
    margin-top: 1rem;
    background-color: #B8860B;
    color: #0A0A0A;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}
.email-form input[type="submit"]:hover {
    background-color: #DAA520;
}

.section-heading {
    margin-top: 2rem;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.advice-content {
    background-color: #0A0A0A;
    border: 1px solid #8B4513;
    border-radius: 4px;
    padding: 1rem;
    white-space: normal;
    word-wrap: break-word;
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 2rem;
}

/* Responsive adjustments */
h1 {
    font-size: 1.5rem;
}
h2 {
    font-size: 1.25rem;
}
h3 {
    font-size: 1.1rem;
}
p, label, input, textarea, pre {
    font-size: 0.9rem;
}
.intro-text {
    font-size: 1rem;
    margin-bottom: 1.5rem;
}
.section-heading {
    font-size: 1rem;
}
.feedback-label {
    font-size: 1rem;
    margin-top: 1.5rem;
}
table {
    display: block;
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
}
th, td {
    font-size: 0.9rem;
    padding: 0.3rem;
}
.email-form {
    padding: 0.5rem;
}
.email-form h2 {
    font-size: 1.2rem;
}
.spinner {
    font-size: 1rem;
}

/* Iframe Container */
.iframe-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px;
    overflow: auto;
}

/* Responsive Override for Mobile Screens */
@media (max-width: 767px) {
    .iframe-container iframe {
        width: 100% !important;
        height: auto !important;
    }
}
