:root {
    /* Light Color Palette */
    --primary: #b08a44; /* Gold accent */
    --primary-light: #d4a75e;
    --primary-dark: #8c6d32;
    --secondary: #0a4d44; /* Deep Emerald for text/accents */
    --background: #fdfdfd; 
    --surface: #e0eae7; /* Darker, clearly defined gray/emerald surface */
    --surface-hover: #ffffff;
    --text-primary: #12211e;
    --text-secondary: #4a5c59;
    --border: #cad6d3;
    --success: #27ae60;
    --error: #e74c3c;
    
    /* Layout */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow: 0 12px 40px rgba(10, 77, 68, 0.12); /* Slightly stronger shadow */
    --transition: all 0.25s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
}

body {
    background-color: var(--background);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
    padding: 1.5rem;
}

/* Background Effects */
.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 0% 0%, rgba(176, 138, 68, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 100% 100%, rgba(10, 77, 68, 0.05) 0%, transparent 40%);
    background-repeat: no-repeat;
    z-index: -1;
}

/* Container */
.container {
    width: 100%;
    max-width: 550px;
    margin: 0 auto;
    z-index: 1;
}

/* Nav Button */
.nav-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--secondary);
    font-size: 0.9rem;
    font-weight: 700;
    padding: 0.6rem 1.2rem;
    background: rgba(10, 77, 68, 0.05);
    border: 1px solid var(--border);
    border-radius: 50px;
    transition: var(--transition);
    margin-bottom: 2rem;
    float: right;
}

.nav-back-btn:hover {
    background: var(--secondary);
    color: white;
    transform: translateX(-5px);
}

.header {
    clear: both;
    text-align: center;
    margin-bottom: 3rem;
}

h1 {
    font-family: 'Amiri', serif;
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--secondary);
    position: relative;
    display: inline-block;
}

h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 20%;
    right: 20%;
    height: 3px;
    background: linear-gradient(to right, transparent, var(--primary), transparent);
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-top: 1rem;
}

/* Card */
.glass {
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
}

.survey-card {
    transition: var(--transition);
}

/* Form Styling */
.input-group {
    margin-bottom: 1.8rem;
}

label {
    display: block;
    margin-bottom: 0.6rem;
    font-weight: 700;
    color: var(--secondary);
    font-size: 0.95rem;
}

input[type="text"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 0.9rem 1.2rem;
    background: #ffffff;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition);
    -webkit-appearance: none;
    appearance: none;
    resize: none;
}

select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23b08a44'%3E%3Cpath d='M7 10l5 5 5-5H7z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 1rem center;
    background-size: 1.5rem;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(176, 138, 68, 0.1);
}

/* Radio Group */
.radio-group {
    border: none;
    margin: 2.5rem 0;
}

legend {
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 1.2rem;
    font-size: 1.15rem;
    text-align: center;
    width: 100%;
}

.radio-card {
    display: block;
    cursor: pointer;
    margin-bottom: 1rem;
    position: relative;
}

.radio-card input {
    position: absolute;
    opacity: 0;
}

.radio-content {
    display: flex;
    align-items: center;
    padding: 1.2rem;
    background: #fff;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    transition: var(--transition);
    gap: 1.2rem;
}

.radio-card:hover .radio-content {
    border-color: var(--primary-light);
    transform: translateY(-2px);
}

.radio-card input:checked + .radio-content {
    border-color: var(--primary);
    background: rgba(176, 138, 68, 0.04);
}

.radio-content .icon {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.radio-content .text .label {
    display: block;
    font-weight: 800;
    margin-bottom: 4px;
    color: var(--secondary);
}

.radio-content .text .description {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.radio-card input:checked + .radio-content::after {
    content: '✓';
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 1.2rem;
    border: none;
    border-radius: var(--radius-md);
    background: linear-gradient(45deg, var(--secondary), #136a5f);
    color: #fff;
    font-size: 1.25rem;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    box-shadow: 0 6px 20px rgba(10, 77, 68, 0.2);
    margin-top: 1rem;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(10, 77, 68, 0.3);
    filter: brightness(1.1);
}

/* Success Message */
.hidden {
    display: none;
}

.success-message {
    text-align: center;
    padding: 1rem 0;
}

.success-icon {
    font-size: 5rem;
    margin-bottom: 1.5rem;
}

.success-message h2 {
    color: var(--secondary);
    margin-bottom: 0.8rem;
    font-family: 'Amiri', serif;
    font-size: 2rem;
}

.reset-btn {
    margin-top: 2rem;
    background: transparent;
    border: 1.5px solid var(--secondary);
    color: var(--secondary);
    padding: 0.8rem 2rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 700;
    transition: var(--transition);
}

.reset-btn:hover {
    background: var(--secondary);
    color: #fff;
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 3rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 400;
}

.designer-name {
    color: var(--secondary);
    font-weight: 700;
    transition: var(--transition);
}

.designer-name:hover {
    color: var(--primary);
}

#adminAccess {
    cursor: pointer;
    font-weight: 700;
    color: var(--secondary);
    transition: var(--transition);
    font-size: 1rem;
    opacity: 0.1;
    display: inline-block;
    padding: 15px 30px;
    margin-top: 10px;
    user-select: none;
    z-index: 9999;
    position: relative;
}

#adminAccess:hover {
    opacity: 1;
}

.copyright {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    opacity: 0.6;
}

/* Mobile Adjustments */
@media (max-width: 480px) {
    .glass { padding: 1.2rem; }
    h1 { font-size: 1.8rem; }
    .radio-content { gap: 0.8rem; }
}
