/* ===============================
   GLOBAL PAGE STYLING
=================================*/

body {
    font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif;
    background: radial-gradient(circle at top left, #f7f9fc 0%, #eef2f7 40%, #f4f6f9 100%);
    color: #1e293b;
}

/* ===============================
   HERO HEADER
=================================*/

.page-title,
h1 {
    font-size: 38px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 10px;
}

.hero-subtext {
    color: #64748b;
    font-size: 16px;
    margin-bottom: 30px;
}

/* ===============================
   QUIZ CARD
=================================*/

#dym-quiz-app {
    max-width: 720px;
    margin: 60px auto;
    padding: 50px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow:
        0 10px 30px rgba(15, 23, 42, 0.05),
        0 2px 6px rgba(15, 23, 42, 0.04);
    transition: all 0.3s ease;
}

/* ===============================
   PROGRESS BAR
=================================*/

.progress-wrapper {
    height: 8px;
    background: #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 30px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #ff7a3d, #ff5722);
    width: 0%;
    transition: width 0.4s ease;
}

/* ===============================
   QUESTION TEXT
=================================*/

#quiz-container h3 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #94a3b8;
    margin-bottom: 8px;
}

#quiz-container p {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 25px;
    color: #0f172a;
}

/* ===============================
   ANSWER BUTTONS
=================================*/

/* ===============================
   QUIZ ANSWER BUTTONS
=================================*/

.option-btn {
    width: 100%;
    padding: 16px 18px;

    border-radius: 12px;
    border: 1px solid #e5e7eb;

    background-color: #f8fafc;
    color: #0f172a;

    font-size: 15px;
    font-weight: 500;
    text-align: left;

    cursor: pointer;
    transition: all 0.2s ease;
}

/* HOVER STATE */
.option-btn:hover {
    background-color: #fff7f3;
    border-color: #ff7a3d;
    color: #0f172a !important; /* force readable text */
}

/* ACTIVE CLICK */
.option-btn:active {
    transform: scale(0.98);
}

/* OPTIONAL: SELECTED STATE */
.option-btn.selected {
    background-color: #ff7a3d;
    border-color: #ff7a3d;
    color: #ffffff;
}

/* ===============================
   RESULT CARD
=================================*/

#result-container {
    max-width: 720px;
    margin: 60px auto;
    padding: 50px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow:
        0 10px 30px rgba(15, 23, 42, 0.05),
        0 2px 6px rgba(15, 23, 42, 0.04);
}

.result-breakdown {
    margin-top: 30px;
}

.result-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 15px;
}

/* ===============================
   FORM SECTION
=================================*/

.dy-form-wrapper {
    max-width: 520px;
    margin: 60px auto 120px;
}

.dy-form-card {
    background: #ffffff;
    padding: 40px;
    border-radius: 16px;
    box-shadow:
        0 10px 30px rgba(15, 23, 42, 0.04);
}

.dy-form-card h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 8px;
}

.dy-form-card p {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 28px;
}

/* ===============================
   UNIFIED FORM FIELD STYLE
=================================*/
/* ===============================
   MATCH INPUTS TO SELECT STYLE
=================================*/

/* ===============================
   FORCE UNIFIED FORM FIELD STYLE
=================================*/

.dy-form-card input[type="text"],
.dy-form-card input[type="email"],
.dy-form-card input[type="tel"],
.dy-form-card select {

    appearance: none;
    -webkit-appearance: none;

    width: 100%;
    height: 52px;
    padding: 0 16px;

    border-radius: 10px !important;
    border: 1px solid #e5e7eb !important;
    background-color: #f8fafc !important;

    font-size: 14px;
    font-weight: 500;
    color: #0f172a !important;

    box-sizing: border-box;
    margin-bottom: 16px;

    transition: all 0.2s ease;
}

/* Focus state */
.dy-form-card input[type="text"]:focus,
.dy-form-card input[type="email"]:focus,
.dy-form-card input[type="tel"]:focus,
.dy-form-card select:focus {

    outline: none;
    border-color: #ff5722 !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(255,87,34,0.1);
}

/* Custom Select Arrow */
.dy-form-card select {
    background-image: url("data:image/svg+xml,%3Csvg fill='%2364748b' height='20' viewBox='0 0 24 24' width='20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
}

/* FORM BUTTON */
.dy-form-card button {
    width: 100%;
    height: 52px;

    border-radius: 10px;
    border: none;

    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.3px;

    background: linear-gradient(90deg, #ff7a3d, #ff5722);
    color: #ffffff !important;

    cursor: pointer;
    transition: all 0.25s ease;
}

.dy-form-card button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255,87,34,0.25);
}


/* Space between answer options */
#quiz-container .option-btn {
    display: block;
    margin-bottom: 14px;
}

/* Remove margin from last option */
#quiz-container .option-btn:last-child {
    margin-bottom: 0;
}