.zodiac-hero {
    width: 100%;
    padding: 40px 20px 150px;
    text-align: center;
    position: relative;
    overflow: hidden;

    background:

        /* ดำไล่จาก header */
        linear-gradient(
            180deg,
            #000 0%,
            rgba(0,0,0,0.85) 8%,
            rgba(0,0,0,0.5) 15%,
            transparent 25%
        ),

        /* หมอกจักรวาลน้ำเงิน */
        radial-gradient(circle at 30% 40%, rgba(0,90,200,0.35), transparent 60%),
        radial-gradient(circle at 75% 60%, rgba(0,120,255,0.25), transparent 65%),

        /* ไล่สีน้ำเงินลึกแบบรูปแรก */
        linear-gradient(
            180deg,
            #020617 0%,
            #061a3a 30%,
            #0b2f63 55%,
            #184d85 75%,
            #fafbfd 100%
        );
}

.zodiac-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;

    background-image:
        radial-gradient(2px 2px at 15% 20%, rgba(255,255,255,0.8), transparent),
        radial-gradient(1.5px 1.5px at 35% 60%, rgba(255,255,255,0.7), transparent),
        radial-gradient(1.5px 1.5px at 60% 30%, rgba(255,255,255,0.6), transparent),
        radial-gradient(2px 2px at 80% 75%, rgba(255,255,255,0.8), transparent),
        radial-gradient(1.5px 1.5px at 50% 85%, rgba(255,255,255,0.6), transparent);

    opacity: 0.6;
}

/* โลโก้ */
.zodiac-logo {
    width: 85px;
    height: 85px;
    border-radius: 50%;
    margin-bottom: 25px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
}

/* หัวข้อ */
.zodiac-hero h1 {
    font-family: 'Bai Jamjuree', sans-serif;
    font-size: 35px;
    font-weight: 700;
    color: #f8f8f8;
    margin: 5px 0;
}

/* เส้นใต้ไล่สี */
.zodiac-line {
    display: block;
    width: 160px;
    height: 4px;
    margin: 18px auto 30px;
    border-radius: 6px;

    background: linear-gradient(
        90deg,
        #ff9cff,
        #7ab6ff
    );

    box-shadow: 0 6px 15px rgba(120,100,255,0.5);
}

/* ข้อความรอง */
.zodiac-sub {
	font-family: 'Bai Jamjuree', sans-serif;
    max-width: 94%;
	font-weight: 500;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.9;
    color: #ffffff;
}

/* wrapper กลางหน้า */
.search-card-wrapper {
    position: relative;
    max-width: 92%;
    margin: -130px auto 20px;   /* ดันขึ้น */
    padding-top: 35px;         /* เผื่อที่ให้โลโก้ */
}

/* ===== การ์ดนูน ===== */
.search-card {
    position: relative;
    padding: 30px 20px 15px 20px;
    border-radius: 30px;

    background: linear-gradient(
        180deg,
        #9e9e9e 0%,
        #929698d7 40%,
        #777f82b6 70%,
        #8a9295 100%
    );

    border: 1px solid rgba(255,255,255,0.15);

    box-shadow:
        0 30px 60px rgba(0,0,0,0.35),
        0 12px 25px rgba(0,0,0,0.25),
        inset 0 3px 6px rgba(255,255,255,0.25),
        inset 0 -10px 25px rgba(0,0,0,0.25);

    overflow: hidden;

    display: flex;
    flex-direction: column;   /* 🔥 สำคัญ */
    gap: 20px;

    transition: all 0.35s ease;  /* 🔥 ทำให้ขยายลื่น */
}

.search-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 30px;
    pointer-events: none;

    background: radial-gradient(
        circle at 50% 20%,
        rgba(255,255,255,0.6),
        transparent 60%
    );

    opacity: 0.6;
}

.search-card.show-result{

    background: linear-gradient(
        180deg,
        #e9e9e9 0%,
        #fdfdfd 40%,
        #ffffff 100%
    );

    box-shadow:
        0 20px 40px rgba(0,0,0,0.15),
        inset 0 2px 4px rgba(255,255,255,0.8);
}

/* ไอคอนลอย */
.search-icon_sum {
    position: absolute;
    top: -20;
    left: 50%;
    transform: translate(-50%, -60%);

    width: 60px;   /* เล็กลง */
    height: 60px;  /* เล็กลง */
    border-radius: 50%;

    background: #444444;
    display: flex;
    align-items: center;
    justify-content: center;

	border: 2px solid rgba(234, 234, 234, 0.8);

    box-shadow:
        0 10px 25px rgba(0,0,0,0.35),
        0 0 12px rgba(255,200,0,0.2);

	z-index: 2;
}

.search-icon_sum img {
    width: 55px;   /* เล็กลง */
    height: 55px;
    border-radius: 50%;
}

@media(max-width:768px){
			.zodiac-hero h1 {
                /*top : -5px;*/
                margin: -15px auto 5px;
            }

            .zodiac-line {
                margin-bottom: 15px;
            }

            .zodiac-sub {
                margin: 5px auto 5px;
            }

            .search-card-wrapper {
                margin: -140px auto 20px;   /* ดันขึ้น */
            }
	}

/* input */
.sumtabien {
    flex: 1;   /* สำคัญมาก */
    height: 55px;
    border-radius: 18px;
    
	border: 3px solid #4b4b4b;
    background: #fffffe;

    padding: 0 15px;
    font-size: 18px;
}

/* ปุ่ม */
.button_sumtabien {
    width: 120px;
    height: 55px;
    border-radius: 18px;
    border: none;
    font-size: 17px;
    font-weight: 600;
    padding: 5px 0 5px 0;
    cursor: pointer;

    background: linear-gradient(
        90deg,
        #caa7f8,
        #9f6de3
    );

    color: #000000;
	border: 2px solid #9e6de3a0;

    box-shadow: 0 8px 18px rgba(138,107,255,0.35);
}

.button_sumtabien:hover {
    transform: translateY(-2px);
    box-shadow:
        0 12px 25px rgba(0,0,0,0.3);
}

#myform {
    display: flex;
    gap: 15px;
    align-items: center;
}

#sum-tabien {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.4s ease;
}

.search-card.show-result #sum-tabien {
    max-height: 100%;
    opacity: 1;
}

.result-card{
    margin-top: -40px;
	/*margin: -50px 2px 10px;*/
    padding: 50px 10px 20px 10px;
    /*border-radius: 18px;*/
	border-radius:15px 15px 5px 5px;

    background: linear-gradient(
        180deg,
        #ffffff,
        #f7f7f7
    );

    box-shadow:
        0 10px 20px rgba(0,0,0,0.15),
        0 8px 15px rgba(0,0,0,0.08);

    text-align: left;
    line-height: 1.85;
    font-size: 17px;
    color: #222;
}

/* หัวข้อเหลือง */
.result-title_sum{
    background: linear-gradient(
        90deg,
        #d4a017 0%,
        #f4c430 40%,
        #ffe066 70%,
        #fff7b8 100%
    );
    color:#000000;
    font-family:'Bai Jamjuree', sans-serif;
    font-weight:600;
    font-size:20px;
	margin-top: -10px;
	margin-bottom:15px;
    padding:10px 10px;
	border-radius:0px 50px 50px 0px;

	/*position:relative;   /* เพิ่ม */
}

/* ระดับผลรวม */
.result-level{
	font-family: 'Bai Jamjuree', sans-serif;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #c40000;
}

/* เนื้อหา */
.result-detail{
	font-family: 'Bai Jamjuree', sans-serif;
    font-size: 16px;
    color: #333;
}

.numerology-wrapper{
    position: relative;
    width: 100%;
    max-width: 360px;   /* จำกัดไม่ให้ใหญ่เกิน */
    margin: 0 auto 30px;
}

.numerology-frame{
    width: 100%;
    height: auto;
    display: block;
}

/* กล่องข้อความทับบนรูป */
.numerology-content{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -52%);
    text-align: center;
    width: 65%;
}

/* เลขทะเบียน */
.numerology-number{
	font-family: 'Bai Jamjuree', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #111;
    margin-bottom: 11px;
}

/* label */
.numerology-label{
	font-family: 'Bai Jamjuree', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #d40000;
    margin-bottom: 11px;
}

/* ผลรวม */
.numerology-result{
	font-family: 'Bai Jamjuree', sans-serif;
    font-size: 32px;
    font-weight: 800;
    color: #1e40af;
    text-shadow: 0 4px 12px rgba(145, 145, 145, 0.2);
}

/* ===== Section ===== */
.ai-recommend-section{
    margin-top: 40px;
    padding: 20px 15px 50px;
}

/* ===== การ์ดฟอร์ม ===== */
.ai-recommend-card{
    background: linear-gradient(
        180deg,
        #f4f4f4 0%,
        #e9e9e9 100%
    );
    padding: 25px;
    border-radius: 25px;
    box-shadow:
        0 15px 35px rgba(0,0,0,0.15),
        inset 0 2px 4px rgba(255,255,255,0.8);
}

/* ===== พื้นที่ผลลัพธ์ ===== */
.ai-result-area{
    margin-top: 30px;
    transition: all .3s ease;
}

/* กล่องผลลัพธ์ */
.ai-result-box{
    background: #ffffff;
    border-radius: 20px;
    padding: 25px;
    box-shadow:
        0 20px 40px rgba(0,0,0,0.08);
}

/* Loader */
.ai-loading{
    height: 60px;
    background: url('images/loader.gif') center no-repeat;
}

/* ซ่อน */
.is-hidden{
    display: none;
}

/* การ์ดหลัก */
.birth-card{
	width:96%;
    background: linear-gradient(
        180deg,
        #ffffff 0%,
        #f4f4f4 100%
    );
    padding: 22px 20px 25px;
    border-radius: 22px;
    box-shadow:
        0 18px 35px rgba(0,0,0,0.12),
        inset 0 2px 6px rgba(255,255,255,0.8);
}

.birth-wrapper{
    display:flex;
    justify-content:center;
    margin-top:25px;
    padding:0 15px;   /* กันชนขอบมือถือ */
}

/* หัวข้อ */
.birth-title{
	font-family: 'Bai Jamjuree', sans-serif;
    font-size:20px;
    font-weight:700;
    margin-bottom:18px;
}

/* grid */
.birth-grid{
    display:grid;
    grid-template-columns: 1fr 1fr;
    gap:18px 30px;
}

/* แต่ละวัน */
.birth-item{
	font-family: 'Bai Jamjuree', sans-serif;
    display:flex;
    align-items:center;
    font-size:16px;
    text-decoration:none;
    color:#2b2b2b;
    padding:10px 12px;
    border-radius:14px;
    background:#ffffff;
    box-shadow:
        0 6px 14px rgba(0,0,0,0.06);
    transition:.25s ease;
}

/* hover */
.birth-item:hover{
    transform:translateY(-3px);
    box-shadow:
        0 12px 25px rgba(0,0,0,0.15);
}

/* dot */
.birth-item .dot{
    width:16px;
    height:16px;
    border-radius:50%;
    margin-right:12px;
    box-shadow:
        0 0 0 3px #fff,
        0 0 0 5px rgba(0,0,0,0.08);
}

/* สีแต่ละวัน */
.sunday .dot{ background:#ff0000; }
.monday .dot{ background:#ffff00; }
.tuesday .dot{ background:#ff66ff; }
.wednesday .dot{ background:#00cc00; }
.rahu .dot{ background:#006600; }
.thursday .dot{ background:#ff8000; }
.friday .dot{ background:#00ffff; }
.saturday .dot{ background:#993399; }

.btn-wrapper{
    text-align:center;
    margin:10px 0;
}

.btn-all-tabien{
    display:inline-block;
    font-family: 'Bai Jamjuree', sans-serif;
    padding:10px 22px;
    color:#fff;
    font-size:16px;
    font-weight:600;

    background: linear-gradient(
				90deg,
				#7d7d7d 0%,      /* ชมพูอ่อนซ้าย */
				#909090 30%,
				#909090 70%,     /* ขยายโซนชมพูเข้ม */
				#7d7d7d 100%     /* ชมพูอ่อนขวา */
			);

	border: 2px solid #878787;   /* ✅ เส้นขอบนอก */

    border-radius:14px;
    text-decoration:none;
    box-shadow:
				0 5px 5px rgba(212, 212, 212, 0.35),
				0 5px 5px rgba(141, 141, 141, 0.25),
				inset 0 3px 6px rgba(255,255,255,0.25),
				inset 0 -10px 25px rgba(170, 170, 170, 0.25);

    transition: all 0.25s ease;
    letter-spacing:0.5px;
}

.btn-all-tabien:active{
    transform: scale(0.97);
}

.input-wrapper{
    position: relative;
    display: inline-block;
    width: 100%;
    /*padding-bottom: 28px;   /* 🔥 เพิ่มพื้นที่ใต้ input */
}

.error-absolute{
    position: absolute;
    left: 5px;
    top: 100%;
    margin-top: 4px;
    font-size: 14px;
    font-weight:500;
    color: #ff0400;
}

.scroll-top-wrapper{
    position: fixed;
    right: 16px;
    bottom: 130px;
    z-index: 9999;
}

.scroll-top-btn{
    width: 43px;
    height: 43px;
    border-radius: 17px;
    border: none;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 18px;
    font-weight: bold;
    color: #fff;

    background: linear-gradient(180deg,#c0c0c0,#5f5f5f);

	/*border: 1px solid #b3b3b3;   /* ✅ เส้นขอบนอก */

    box-shadow:
        0 6px 16px rgba(0,0,0,0.35),
        inset 0 2px 4px rgba(255,255,255,0.2);

    transition: 0.25s ease;
}

.scroll-top-btn:hover{
    transform: translateY(-3px);
}
