/* =========================================================
   LUNAR MANSION READING
   style.css
   ========================================================= */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    background: #f4f1eb;
    color: #292722;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.6;
}


/* =========================================================
   PAGE
   ========================================================= */

.page-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 20px;
}


/* =========================================================
   READING CONTAINER
   ========================================================= */

.reading-container {
    width: 100%;
    max-width: 680px;
    background: #ffffff;
    padding: 50px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}


/* =========================================================
   HEADER
   ========================================================= */

.reading-header {
    text-align: center;
    margin-bottom: 40px;
}

.reading-header h1 {
    margin: 0 0 12px;
    font-size: 36px;
    line-height: 1.2;
    font-weight: 600;
    color: #292722;
}

.reading-header p {
    max-width: 500px;
    margin: 0 auto;
    color: #77736c;
    font-size: 16px;
}


/* =========================================================
   FORM
   ========================================================= */

.reading-form {
    width: 100%;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #36332e;
    font-size: 15px;
    font-weight: 600;
}

.form-group input,
.form-group select {
    display: block;
    width: 100%;
    height: 52px;
    padding: 0 15px;

    background: #ffffff;
    color: #292722;

    border: 1px solid #d6d1c8;
    border-radius: 6px;

    font-family: inherit;
    font-size: 16px;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #8b7653;
    box-shadow: 0 0 0 3px rgba(139, 118, 83, 0.12);
}


/* =========================================================
   SUBMIT BUTTON
   ========================================================= */

.form-submit {
    margin-top: 35px;
}

.submit-button {
    width: 100%;
    min-height: 54px;

    padding: 14px 25px;

    border: 0;
    border-radius: 6px;

    background: #292722;
    color: #ffffff;

    font-family: inherit;
    font-size: 16px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.1s ease;
}

.submit-button:hover {
    background: #403d37;
}

.submit-button:active {
    transform: translateY(1px);
}


/* =========================================================
   MOBILE
   ========================================================= */

@media only screen and (max-width: 700px) {

    .page-wrapper {
        padding: 25px 15px;
        align-items: flex-start;
    }

    .reading-container {
        padding: 35px 25px;
    }

    .reading-header {
        margin-bottom: 30px;
    }

    .reading-header h1 {
        font-size: 29px;
    }

}

/* =========================================================
   RESULT PAGE
   ========================================================= */

.result-page {
    align-items: flex-start;
}

.result-container {
    max-width: 850px;
}


/* =========================================================
   RESULT SECTIONS
   ========================================================= */

.result-section {
    margin-top: 35px;
    padding-top: 35px;
    border-top: 1px solid #e5e0d8;
}

.result-section h2 {
    margin: 0 0 25px;
    font-size: 24px;
    color: #292722;
}


/* =========================================================
   PERSONAL DETAILS
   ========================================================= */

.personal-details {
    width: 100%;
}

.detail-row {
    display: flex;
    padding: 11px 0;
    border-bottom: 1px solid #f0ede8;
}

.detail-label {
    width: 180px;
    flex-shrink: 0;
    color: #77736c;
}

.detail-value {
    color: #292722;
    font-weight: 600;
}


/* =========================================================
   BIRTH SIGNS
   ========================================================= */

.birth-sign-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.birth-sign-box {
    padding: 25px;
    background: #f7f4ee;
    border-radius: 8px;
    text-align: center;
}

.birth-sign-label {
    display: block;
    margin-bottom: 7px;
    color: #77736c;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.birth-sign-value {
    display: block;
    color: #292722;
    font-size: 22px;
}


/* =========================================================
   SKY ANIMAL
   ========================================================= */

.sky-animal-section {
    text-align: center;
}

.section-heading {
    margin-bottom: 25px;
}

.section-small-title {
    display: block;
    margin-bottom: 8px;
    color: #8b7653;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.section-heading h2 {
    margin: 0;
    font-size: 38px;
}

.sky-number {
    margin: 25px 0;
}

.sky-number span {
    display: block;
    margin-bottom: 5px;
    color: #77736c;
}

.sky-number strong {
    font-size: 32px;
}

.sky-family {
    margin: 25px 0 35px;
}

.sky-family span {
    display: block;
    margin-bottom: 6px;
    color: #77736c;
}

.sky-family strong {
    font-size: 20px;
    letter-spacing: 1px;
}

.sky-description {
    max-width: 680px;
    margin: 0 auto;
    color: #4c4943;
    font-size: 17px;
    line-height: 1.85;
    text-align: left;
}

.sky-description p {
    margin: 0 0 18px;
}

.sky-description p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   ACTIONS
   ========================================================= */

.result-actions {
    display: flex;
    gap: 15px;
    margin-top: 45px;
    padding-top: 30px;
    border-top: 1px solid #e5e0d8;
}

.result-actions > * {
    flex: 1;
}

.pdf-form {
    margin: 0;
}

.button-link {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 54px;
    padding: 14px 25px;

    border-radius: 6px;

    text-decoration: none;
    font-weight: 600;
}

.secondary-button {
    border: 1px solid #292722;
    background: #ffffff;
    color: #292722;
}

.secondary-button:hover {
    background: #f5f3ef;
}


/* =========================================================
   ERRORS
   ========================================================= */

.error-box {
    padding: 20px 25px;
    background: #f8eeee;
    border: 1px solid #e5caca;
    border-radius: 6px;
}

.error-box p {
    margin: 5px 0;
}


/* =========================================================
   RESULT MOBILE
   ========================================================= */

@media only screen and (max-width: 700px) {

    .detail-row {
        display: block;
    }

    .detail-label {
        width: 100%;
        margin-bottom: 3px;
    }

    .birth-sign-grid {
        grid-template-columns: 1fr;
    }

    .section-heading h2 {
        font-size: 31px;
    }

    .result-actions {
        flex-direction: column;
    }

}