/*=========================================
  GOOGLE FONT & RESET
=========================================*/

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Poppins", sans-serif;
    background: #F8FAFC;
    color: #1F2937;
    line-height: 1.6;
    overflow-x: hidden;
}

/*=========================================
  VARIABLES
=========================================*/

:root {

    --primary: #4F46E5;
    --secondary: #7C3AED;

    --dark: #222222;
    --text: #374151;
    --light: #F8FAFC;
    --white: #ffffff;

    --border-radius: 16px;

    --shadow:
        0 12px 35px rgba(0, 0, 0, .08);

    --transition: .35s ease;

}

/*=========================================
  GLOBAL
=========================================*/

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
}

ul {
    list-style: none;
}

.container {

    width: 100%;
    max-width: 1200px;

    margin: auto;

    padding: 0 24px;

}

/*=========================================
  HEADER
=========================================*/

.header {

    position: sticky;

    top: 0;

    left: 0;

    width: 100%;

    background: #fff;

    z-index: 999;

    box-shadow: 0 2px 15px rgba(0,0,0,.05);

}

.header .container {

    height: 75px;

    display: flex;

    align-items: center;

    justify-content: space-between;

}

/*=========================================
  LOGO
=========================================*/

.logo {

    display: flex;

    align-items: center;

    gap: 10px;

    color: var(--dark);

    font-size: 24px;

    font-weight: 700;

}
.logo img {
		max-width: 270px;
} 


/*=========================================
  NAVIGATION
=========================================*/

.nav-links{

    display:flex;

    align-items:center;

    gap:35px;

}

.nav-links a{

    color:var(--text);

    font-weight:500;

    transition:var(--transition);

    position:relative;

}

.nav-links a:hover{

    color:var(--primary);

}

.nav-links a::after{

    content:"";

    position:absolute;

    left:0;

    bottom:-6px;

    width:0;

    height:2px;

    background:var(--primary);

    transition:var(--transition);

}

.nav-links a:hover::after{

    width:100%;

}

/*=========================================
  HAMBURGER
=========================================*/

.menu-toggle{

    display:none;

    background:none;

    border:none;

    cursor:pointer;

}

.menu-toggle span{

    display:block;

    width:28px;

    height:3px;

    margin:5px 0;

    background:#111827;

    border-radius:5px;

    transition:.3s;

}

/*=========================================
 HERO
=========================================*/

.hero{

    min-height:calc(100vh - 75px);

    display:flex;

    align-items:center;

    justify-content:center;

    padding:80px 0;

    background:

    radial-gradient(circle at top left,#eef2ff 0%,transparent 45%),

    radial-gradient(circle at bottom right,#ede9fe 0%,transparent 45%),

    #F8FAFC;

}

.hero-wrapper{

    display:flex;

    justify-content:center;

}

.hero-content{

    max-width:720px;

    width:100%;

    text-align:center;

}

.hero h1{

    font-size:54px;

    line-height:1.15;

    font-weight:700;

    color:#111827;

    margin-bottom:24px;

}

.hero p{

    font-size:18px;

    color:#6B7280;

    margin-bottom:45px;

}
/*=========================================
  FORM CARD
=========================================*/

.form-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.form-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12);
}

/*=========================================
  FORM
=========================================*/

#numerologyForm {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/*=========================================
  FORM GROUP
=========================================*/

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 15px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 10px;
}

.form-group input {
    width: 100%;
    height: 56px;
    padding: 0 18px;
    border: 1px solid #D1D5DB;
    border-radius: 12px;
    outline: none;
    background: #fff;
    color: var(--dark);
    font-size: 15px;
    font-family: inherit;
    transition: var(--transition);
}

/* Placeholder */

.form-group input::placeholder {
    color: #9CA3AF;
}

/* Focus Effect */

.form-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, .12);
}

/*=========================================
  DATE INPUT
=========================================*/

input[type="date"] {
    cursor: pointer;
}

/*=========================================
  BUTTON
=========================================*/

.btn-primary {
    width: 100%;
    height: 58px;
    border: none;
    border-radius: 14px;
    background: #d84227;
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 12px 25px rgba(79, 70, 229, .28);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 35px rgba(79, 70, 229, .35);
}

.btn-primary:active {
    transform: scale(.98);
}

/*=========================================
  FEATURES
=========================================*/

.form-features {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #6B7280;
    font-size: 14px;
    font-weight: 500;
}
/*=========================================
  FOOTER
=========================================*/

.footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.75);
    padding: 50px 0 30px;
    text-align: center;
}

.footer-menu {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 24px;
}

.footer-menu a {
    color: rgba(255,255,255,.8);
    font-size: 15px;
    transition: var(--transition);
}

.footer-menu a:hover {
    color: #ffffff;
}

.footer p {
    font-size: 14px;
}

/*=========================================
  FADE ANIMATION
=========================================*/

.hero-content {
    animation: fadeUp .8s ease forwards;
}

@keyframes fadeUp {

    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}

/*=========================================
  TABLET
=========================================*/

@media (max-width:992px){

    .hero h1{
        font-size:42px;
    }

    .hero{
        padding:70px 0;
    }

    .form-card{
        padding:32px;
    }

}

/*=========================================
  MOBILE NAVIGATION
=========================================*/

@media (max-width:768px){

    /* Header */

    .header .container{

        height:70px;

    }

    .menu-toggle{

        display:block;

        z-index:1001;

    }

    .navbar{

        position:absolute;

        top:100%;

        left:0;

        width:100%;

        background:#fff;

        box-shadow:0 15px 30px rgba(0,0,0,.08);

        overflow:hidden;

        max-height:0;

        transition:max-height .35s ease;

    }

    .navbar.active{

        max-height:400px;

    }

    .nav-links{

        flex-direction:column;

        gap:0;

        padding:15px 0;

    }

    .nav-links li{

        width:100%;

    }

    .nav-links a{

        display:block;

        width:100%;

        padding:16px 25px;

    }

    .nav-links a::after{

        display:none;

    }

    /* Hero */

    .hero{

        min-height:auto;

        padding:60px 0;

    }

    .hero h1{

        font-size:34px;

    }

    .hero p{

        font-size:16px;

        margin-bottom:35px;

    }

    .form-card{

        padding:24px;

    }

    .form-group input{

        height:54px;

    }

    .btn-primary{

        height:56px;

        font-size:16px;

    }

    .form-features{

        flex-direction:column;

        gap:12px;

    }

    .footer-menu{

        flex-direction:column;

        gap:15px;

    }

}

/*=========================================
  SMALL MOBILE
=========================================*/

@media (max-width:480px){

    .container{

        padding:0 18px;

    } 
	   

    .hero h1{

        font-size:30px;

    }

    .hero p{

        font-size:15px;

    }

    .form-card{

        padding:20px;

        border-radius:14px;

    }

    .form-group label{

        font-size:14px;

    }

    .form-group input{

        font-size:14px;

        padding:0 16px;

    }

    .btn-primary{

        font-size:15px;

    }

    .feature{

        font-size:13px;

    }

}

/*=========================================
  RESULT PAGE
=========================================*/

.result-page {
    font-family: "Inter", "Poppins", sans-serif;
    background: #feebe254;
    color: #0F172A;
}

.result-page main {
    overflow: hidden;
}

.result-page section {
    padding: 70px 0;
}

.result-page h1,
.result-page h2,
.result-page h3 {
    color: #842b1f;
    line-height: 1.25;
}

.result-page p {
    color: #64748B;
}

.result-page .btn-primary,
.result-page .btn-secondary {
    width: auto;
    min-height: 50px;
    height: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 13px 24px;
    font-size: 15px;
    font-weight: 700;
    box-shadow: none;
}

.result-page .btn-primary {
    background: #842b1f;
    border: 0;
    cursor: pointer;
}

.result-page .btn-primary:hover {
    background: #1D4ED8;
}

.result-page .btn-secondary {
    border: 1px solid #E5E7EB;
    background: #FFFFFF;
    color: #0F172A;
    cursor: pointer;
}

.result-hero {
    padding: 90px 0 45px;
    text-align: center;
}

.hero-container {
    max-width: 760px;
}

.success-icon {
    width: 78px;
    height: 78px;
    margin: 0 auto 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ECFDF5;
    color: #16A34A;
    font-size: 34px;
    font-weight: 800;
}

.hero-tag,
.recommendation-badge,
.analysis-value .badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: #fefce2;
    color: #842b1f;
    font-size: 14px;
    font-weight: 700;
}

.hero-tag {
    padding: 8px 16px;
    margin-bottom: 22px;
}

.result-hero h1 {
    font-size: 48px;
    margin-bottom: 18px;
}

.result-hero p {
    max-width: 640px;
    margin: auto;
    font-size: 18px;
}

.summary-section,
.analysis-section,
.lo-shu-section,
.bndn-section {
    padding-top: 20px;
}

.report-card,
.insight-card,
.download-card,
.recommendation-card {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, .05);
}

.report-card {
    padding: 40px;
}

.card-header {
    margin-bottom: 32px;
}

.card-header h1,
.card-header h2 {
    margin-bottom: 8px;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.summary-item {
    background: #fefce2;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    padding: 22px;
}

.summary-item label {
    display: block;
    margin-bottom: 10px;
    color: #64748B;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.summary-item span {
    display: block;
    color: #0F172A;
    font-size: 22px;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.summary-item small {
    display: block;
    margin-top: 5px;
    color: #64748B;
    font-size: 13px;
    font-weight: 700;
}

.loshu-wrap,
.loshu-table,
.loshu-source-table {
    width: 100%;
    border-collapse: collapse;
}

.loshu-panel,
.loshu-details {
    vertical-align: top;
}

.loshu-panel {
    width: 42%;
    padding-right: 18px;
}

.loshu-details {
    padding-left: 18px;
}

.loshu-table {
    border: 1px solid #CBD5E1;
    background: #FFFFFF;
}

.loshu-table td {
    width: 33.333%;
    height: 112px;
    padding: 16px;
    border: 1px solid #CBD5E1;
    text-align: center;
    vertical-align: middle;
}

.loshu-number {
    display: block;
    color: #842b1f;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.1;
    overflow-wrap: anywhere;
}

.loshu-sources {
    display: block;
    margin-top: 8px;
    color: #64748B;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.35;
}

.loshu-source-table {
    border: 1px solid #E5E7EB;
    background: #FFFFFF;
}

.loshu-source-table td {
    padding: 16px 18px;
    border: 1px solid #E5E7EB;
    color: #0F172A;
    font-weight: 800;
    vertical-align: top;
    overflow-wrap: anywhere;
}

.loshu-source-table td:first-child {
    width: 44%;
    color: #64748B;
    background: #fefce2;
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.analysis-table {
    overflow: hidden;
    border: 1px solid #E5E7EB;
    border-radius: 18px;
    background: #FFFFFF;
}

.analysis-row {
    display: grid;
    grid-template-columns: 300px 1fr;
    min-height: 72px;
    border-bottom: 1px solid #E5E7EB;
}

.analysis-row:last-child {
    border-bottom: none;
}

.analysis-row:nth-child(even) {
    background: #FAFBFC;
}

.analysis-label {
    padding: 22px 26px;
    border-right: 1px solid #E5E7EB;
    color: #0F172A;
    font-weight: 800;
}

.analysis-value {
    padding: 22px 26px;
    color: #64748B;
    line-height: 1.75;
}

.analysis-value p + p {
    margin-top: 10px;
}

.analysis-value strong {
    color: #842b1f;
}

.analysis-value .badge {
    padding: 5px 11px;
    margin-left: 8px;
    font-size: 12px;
}

.interpretation-section {
    padding-top: 20px;
}

.interpretation-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.insight-card {
    padding: 28px;
    transition: .3s ease;
}

.insight-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 35px rgba(15, 23, 42, .09);
}

.insight-icon {
    width: 58px;
    height: 58px;
    margin-bottom: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f4f1d0;
    color: #842b1f;
    font-size: 24px;
    font-weight: 800;
}

.insight-card h3 {
    margin-bottom: 12px;
}

.insight-card p + p {
    margin-top: 12px;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    border: 1px solid #E5E7EB;
    border-radius: 18px;
    background: #FFFFFF;
}

.bndn-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
}

.bndn-table th,
.bndn-table td {
    padding: 17px 20px;
    text-align: left;
    border-bottom: 1px solid #E5E7EB;
    vertical-align: top;
}

.bndn-table th {
    background: #842b1f;
    color: #fff;
    font-weight: 800;
}


.bndn-table td {
    color: #64748B;
}

.bndn-table tbody tr:last-child td {
    border-bottom: none;
}

.bndn-table td:first-child,
.bndn-table td:nth-child(2) {
    color: #0F172A;
    font-weight: 800;
}

.report-banner {
    margin-top: 24px;
    overflow: hidden;
    border: 1px solid #E5E7EB;
    border-radius: 18px;
    background: #F8FAFC;
}

.report-banner img {
    width: 100%;
    height: auto;
}

.recommendation-section {
    padding: 80px 0;
}

.recommendation-card {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 48px;
    align-items: center;
    padding: 48px;
    background: #fefce2;
}

.recommendation-badge {
    padding: 9px 16px;
    margin-bottom: 18px;
    background: #FFFFFF;
}

.recommendation-content h2,
.download-content h2 {
    margin-bottom: 14px;
}

.recommendation-content p {
    max-width: 760px;
    margin-bottom: 24px;
}

.recommendation-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 22px;
    margin-bottom: 30px;
}

.recommendation-list li {
    color: #0F172A;
    font-weight: 700;
}

.recommendation-list li::before {
    content: "+";
    margin-right: 9px;
    color: #16A34A;
}

.recommendation-actions,
.download-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.recommendation-illustration {
    display: flex;
    justify-content: center;
}

.recommendation-circle {
    width: 210px;
    height: 210px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    color: #2563EB;
    font-size: 72px;
    box-shadow: 0 10px 35px rgba(15, 23, 42, .08);
}

.download-section {
    padding-top: 10px;
}

.download-card {
    padding: 48px;
    text-align: center;
}

.download-icon {
    width: 92px;
    height: 92px;
    margin: 0 auto 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fefce2;
    color: #842b1f;
    font-weight: 800;
}

.download-content p {
    max-width: 720px;
    margin: 0 auto 30px;
}

.download-actions {
    justify-content: center;
}

.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 52px;
    height: 52px;
    border: none;
    border-radius: 50%;
    background: #2563EB;
    color: #FFFFFF;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 10px 35px rgba(15, 23, 42, .18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(18px);
    transition: .3s ease;
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.report-list {
    margin-bottom: 24px;
}

.report-list li {
    padding: 10px 0;
    color: #64748B;
}

@media (max-width: 992px) {
    .result-hero h1 {
        font-size: 40px;
    }

    .analysis-row {
        grid-template-columns: 240px 1fr;
    }

    .interpretation-grid,
    .recommendation-card {
        grid-template-columns: 1fr;
    }

    .recommendation-card {
        text-align: center;
    }

    .recommendation-actions {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .result-page section {
        padding: 55px 0;
    }

    .result-hero {
        padding-top: 65px;
    }

    .result-hero h1 {
        font-size: 34px;
    }

    .summary-grid {
        grid-template-columns: 1fr;
    }

    .loshu-wrap,
    .loshu-wrap > tbody,
    .loshu-wrap > tbody > tr,
    .loshu-wrap > tbody > tr > .loshu-panel,
    .loshu-wrap > tbody > tr > .loshu-details {
        display: block;
        width: 100%;
    }

    .loshu-wrap > tbody > tr > .loshu-panel,
    .loshu-wrap > tbody > tr > .loshu-details {
        padding: 0;
    }

    .loshu-wrap > tbody > tr > .loshu-details {
        margin-top: 18px;
    }

    .analysis-row {
        grid-template-columns: 1fr;
    }

    .analysis-label {
        border-right: none;
        border-bottom: 1px solid #E5E7EB;
        padding-bottom: 14px;
    }

    .analysis-value {
        padding-top: 16px;
    }

    .report-card,
    .recommendation-card,
    .download-card,
    .insight-card {
        padding: 26px;
    }

    .recommendation-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .result-hero h1 {
        font-size: 30px;
    }

    .summary-item span {
        font-size: 19px;
    }

    .recommendation-actions,
    .download-actions {
        flex-direction: column;
    }

    .result-page .btn-primary,
    .result-page .btn-secondary {
        width: 100%;
    }
}
