/* Variables */
:root {
    --primary: #006BB3;
    --bg-light: #f8fafc;
    --border-color: #e2e8f0;
    --text-main: #334155;
    --header-bg: #f1f5f9;
    --card-white: #ffffff;
    --input-bg: #ffffff;
    --input-focus: #ebf5ff;
    --grad-start: #a8c0e0;
    --grad-end: #285a97;
}

body {
    /* This creates a smooth diagonal gradient */
    background: linear-gradient(135deg, var(--grad-start) 0%, var(--grad-end) 100%);
    background-attachment: fixed; /* Keeps gradient still while scrolling */
    
    font-family: 'Segoe UI', Tahoma, sans-serif;
    margin: 0;
    padding: 20px 20px;
    min-height: 100vh; /* Ensures gradient covers the whole screen */
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

/* Master Card Container */
.master-card {
    width: 100%;
    max-width: 800px;
    background: var(--card-white);
    border-radius: 12px;
    /* Soft shadow to make it "pop" off the cool grey background */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08); 
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.header-content {
    background-color: var(--header-bg);
    padding: 25px;
    text-align: center;
    border-bottom: 2px solid var(--primary); /* Thick blue accent line */
}

.logo { 
    max-width: 240px; 
    height: auto; 
}

/* Middle Body Area */
.form-section {
    padding: 20px;
    background-color: var(--card-white);
}

.form-section h1 {
    color: var(--primary);
    margin-bottom: 20px;
}

.form-section h5 {
    font-style: italic;
    margin: 15px 0;
}

.survey-form {
    display: block;
    flex-direction: column;
    gap: 15px; /* Space between form rows */
}

.form-row {
    display: flex;
    align-items: center; /* Vertically centers label with input */
    gap: 15px;
    margin-bottom: 10px;
}

.form-row label {
    flex: 0 0 70px; /* Fixed width for labels so inputs align */
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    text-align: right; /* Aligns text toward the input */
}

/* Textarea Logic (Stacked for better UX) */
.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-main);
}

/* Common Styles */
input[type="text"], 
input[type="email"], 
textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
    box-sizing: border-box;
    transition: all 0.2s;
}

textarea {
    min-height: 80px;
    resize: vertical;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 107, 179, 0.1);
}

.form-actions {
    display: flex;
    justify-content: flex-end; /* Aligns button to the right */
    margin-top: 10px;
}

/* Container for the radio "buttons" */
.scale-question {
    display: block;
    margin-bottom: 15px;
    font-weight: 600;
    color: var(--text-main);
}

.rating-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background: #f8fafc; /* Subtle contrast from the white card */
    padding: 15px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.scale-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    max-width: 90px;
    line-height: 1.2;
    margin: 0;
    display: inline-block;
    vertical-align: middle;
}

/* Hide original radio */
.rating-box input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
}


/* Style the number circles */
.rating-box .dot {
    display: flex;
    align-items: center;
    justify-content: center;
    
    height: 42px;
    min-width: 42px; /* Ensures it is at least a circle */
    padding: 0 10px; /* Smaller side padding so 1-5 stay compact */
    
    border: 2px solid var(--border-color);
    border-radius: 21px; /* Half of height for perfect pill ends */
    background-color: white;
    line-height: 1;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--text-main);
    transition: all 0.2s ease;
    white-space: nowrap; /* Prevents text from wrapping to a second line */
    box-sizing: border-box;
}

/* Ensure the container doesn't squeeze them */
.rating-options {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

.rating-container {
    justify-content: center; 
}

/* Hover state */
.rating-box:hover .dot {
    border-color: var(--primary);
    color: var(--primary);
}

/* Selected state */
.rating-box input:checked + .dot {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 4px 10px rgba(0, 107, 179, 0.3);
    transform: translateY(-2px); /* Slight lift effect */
}

/* Mobile Tweak: Stack the labels if screen is too small */
@media (max-width: 600px) {
    .rating-container {
        flex-direction: column;
        text-align: center;
    }
    .scale-label {
        max-width: none;
    }
}

.btn-submit {
    background-color: var(--primary);
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 15px 30px;
    border-radius: 8px;
    border: none;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.1s, background-color 0.2s;
    display: block;
    margin: 0 auto;
}

.btn-submit:hover {
    background-color: #00558e;
    transform: translateY(-1px);
}

/* Footer Logic */
.master-footer {
    background: var(--header-bg);
    padding: 25px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.footer-top-link {
    font-size: 0.85rem;
    font-weight: bold;
    color: var(--primary);
    text-decoration: none;
}

.social-icons i {
    font-size: 24px;
    color: #a0aec0; /* Match the grey in your screenshot */
    transition: color 0.2s;
}

.social-icons i:hover {
    color: var(--primary); /* Glow blue on hover */
}

.copyright {
    color: #a0aec0;
    font-size: 0.8rem;
    margin: 0;
}
