.bestdy-wrapper {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    background: #f4f6fb;
    padding: 60px 20px;
    font-family: 'Prompt', sans-serif;
}
 
.bestdy-container {
    max-width: 1400px;
    margin: auto;
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
    align-items: stretch;
}
 
/* ===== LEFT PANEL ===== */
.bestdy-left {
    flex: 1;
    min-width: 300px;
    background: #1f2d46;
    border-radius: 20px;
    padding: 24px;
    color: white;
}
 
.bestdy-left-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
 
.bestdy-left-header h2 {
    color: #ffffff !important;
    font-size: 18px;
}
 
.bestdy-left-header span {
    color: #38bdf8;
    font-size: 13px;
}
 
.bestdy-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    align-items: stretch;
}
 
.bestdy-card {
    background: #243b5a;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #2f4a70;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
}
 
.bestdy-card:hover {
    transform: translateY(-4px);
    border-color: #38bdf8;
}
 
.bestdy-card-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #314a6e;
    border-top-left-radius: 14px;
    border-top-right-radius: 14px;
    flex-shrink: 0;
}
 
.bestdy-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: 0.4s;
}
 
.bestdy-card:hover img {
    transform: scale(1.05);
}
 
.bestdy-card-text {
    padding: 18px;
    background: #20314a;
    flex-grow: 1;
}
 
.bestdy-card-text h3 {
    font-size: 20px;
    margin: 0;
    color: #ffffff !important;
}
 
.bestdy-card-text p {
    color: #38bdf8;
    font-size: 16px;
    margin-top: 8px;
}
 
/* ===== RIGHT PANEL ===== */
.bestdy-right {
    flex: 1.2;
    min-width: 300px;
    background: linear-gradient(135deg, #1b2a47, #1e3558);
    border-radius: 20px;
    padding: 30px;
    position: relative;
    color: white;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
 
.bestdy-glow {
    position: absolute;
    top: -80px;
    right: -80px;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(56, 189, 248, 0.35) 0%,
        rgba(56, 189, 248, 0.2) 40%,
        transparent 70%
    );
    filter: blur(10px);
    pointer-events: none;
}
 
.bestdy-glow-bottom {
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(56, 189, 248, 0.25) 0%,
        rgba(56, 189, 248, 0.12) 40%,
        transparent 70%
    );
    filter: blur(18px);
    pointer-events: none;
}
 
.bestdy-badge {
    background: rgba(255, 255, 255, 0.1);
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    margin-bottom: 10px;
}
 
.bestdy-title-small {
    color: #facc15;
    font-size: 12px;
    margin-bottom: 6px;
}
 
.bestdy-title {
    font-size: 36px;
    margin: 10px 0 8px;
    display: flex;
    align-items: center;
    margin-left: -35px;
    color: #ffffff !important;
}
 
.bestdy-title img {
    height: 80px;
    width: auto;
    display: block;
}
 
.bestdy-sub {
    font-size: 20px;
    margin-top: 6px;
    color: #ffffff !important;
}
 
.bestdy-desc {
    font-size: 20px;
    color: #ffffff;
    font-weight: 500;
    margin-top: 10px;
    line-height: 1.8;
    letter-spacing: 0.2px;
}
 
.highlight-yellow {
    color: #facc15;
    font-weight: 600;
}
 
.bestdy-right-title {
    margin-top: 20px;
    margin-bottom: 10px;
    font-weight: bold;
}
 
/* ===== SMALL GRID ===== */
.bestdy-small-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    flex: 1;
    align-content: stretch;
    grid-auto-rows: 1fr;
}
 
.bestdy-small-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 16px;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.5;
    height: 100%;
    justify-content: space-between;
}
 
.bestdy-small-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}
 
.bestdy-small-card-icon {
    font-size: 36px;
    line-height: 1;
    flex-shrink: 0;
}
 
.bestdy-small-card-titles {
    display: flex;
    flex-direction: column;
}
 
.bestdy-small-card-name {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.4;
}
 
.bestdy-small-card p {
    font-size: 18px;
    color: #cbd5e1;
    margin-top: 6px;
    line-height: 1.7;
    letter-spacing: 0.2px;
    flex-grow: 1;
    margin-bottom: 0;
}
 
.bestdy-small-card:hover {
    border-color: #38bdf8;
    transform: translateY(-3px);
}
 
.ai-label {
    display: block;
    font-size: 14px;
    color: #38bdf8;
    margin-top: 3px;
    margin-bottom: 8px;
    font-weight: 500;
}
 
/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .bestdy-container {
        flex-direction: column;
    }
 
    /* card รูปฝั่งซ้าย ยังแถวละ 2 */
    .bestdy-grid {
        grid-template-columns: repeat(2, 1fr);
    }
 
    /* small card ฝั่งขวา ยังแถวละ 2 */
    .bestdy-small-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
 
/* ===== REGISTER BOX (inside bestdy-right) ===== */
.bestdy-register-box {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
}
 
.bestdy-register-box .bestdy-small-card {
    height: auto !important;
    margin-bottom: 14px !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
}
 
.bestdy-register-title {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 8px;
}
 
.bestdy-register-desc {
    font-size: 14px;
    color: #cbd5e1;
    margin-bottom: 20px;
}
 
.bestdy-register-form {
    display: flex !important;
    gap: 12px !important;
    margin-bottom: 10px !important;
    flex-wrap: wrap !important;
    align-items: center !important;
}
 
/* Table-based form layout (WordPress-safe) */
.bestdy-register-table {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 10px 0 !important;
    margin: 10px 0 !important;
    table-layout: auto !important;
    background: transparent !important;
    border: none !important;
}
 
.bestdy-register-table tr,
.bestdy-register-table td {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    vertical-align: middle !important;
}
 
.bestdy-email-td {
    width: 100% !important;
}
 
.bestdy-btn-td {
    white-space: nowrap !important;
}
 
.bestdy-wrapper .bestdy-email-input,
.bestdy-right .bestdy-email-input {
    flex: 1 !important;
    min-width: 200px !important;
    padding: 12px 16px !important;
    border-radius: 10px !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
    background: rgba(255,255,255,0.08) !important;
    color: #ffffff !important;
    font-family: 'Prompt', sans-serif !important;
    font-size: 15px !important;
    outline: none !important;
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    box-shadow: none !important;
    margin: 0 !important;
}
 
.bestdy-wrapper .bestdy-email-input::placeholder,
.bestdy-right .bestdy-email-input::placeholder {
    color: rgba(255,255,255,0.4) !important;
    opacity: 1 !important;
}
 
.bestdy-wrapper .bestdy-email-input:focus,
.bestdy-right .bestdy-email-input:focus {
    border-color: #38bdf8 !important;
    background: rgba(255,255,255,0.12) !important;
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(56,189,248,0.25) !important;
}
 
.bestdy-register-btn {
    padding: 12px 20px;
    border-radius: 10px;
    border: none;
    background: #38bdf8;
    color: #0f172a;
    font-family: 'Prompt', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.25s, box-shadow 0.25s, background 0.25s;
}
 
.bestdy-register-btn:hover {
    background: #7dd3fc;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(56,189,248,0.45);
}
 
.bestdy-register-note {
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 24px;
}
 
.bestdy-feature-badges {
    display: flex;
    flex-direction: row;
    gap: 12px;
    margin-top: 4px;
    margin-bottom: 0;
    flex-wrap: nowrap;
}
 
.bestdy-feature-badge {
    flex: 1;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 14px;
    padding: 18px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
    transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
    cursor: default;
}
 
.bestdy-feature-badge:hover {
    transform: translateY(-4px);
    border-color: #38bdf8;
    box-shadow: 0 0 0 1px #38bdf8, 0 6px 20px rgba(56,189,248,0.3);
}
 
.badge-icon {
    font-size: 30px;
    line-height: 1;
}
 
.badge-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    align-items: center;
}
 
.badge-title {
    font-size: 22px;
    font-weight: 700;
    color: #38bdf8;
    line-height: 1.2;
}
 
.badge-sub {
    font-size: 14px;
    color: #cbd5e1;
    line-height: 1.5;
}
 
.bestdy-action-btns {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
 
.bestdy-btn-primary {
    flex: 1;
    padding: 14px 20px;
    border-radius: 10px;
    border: none;
    background: #38bdf8;
    color: #0f172a;
    font-family: 'Prompt', sans-serif;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.25s, box-shadow 0.25s, background 0.25s;
}
 
.bestdy-btn-primary:hover {
    background: #7dd3fc;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(56,189,248,0.45);
}
 
.bestdy-btn-secondary {
    flex: 1;
    padding: 14px 20px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.07);
    color: #ffffff;
    font-family: 'Prompt', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
 
.bestdy-btn-secondary:hover {
    border-color: #38bdf8;
    background: rgba(56,189,248,0.1);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(56,189,248,0.25);
}
 
.bestdy-closing-text {
    font-size: 15px;
    color: #cbd5e1;
    line-height: 1.8;
}
 
.bestdy-copyright {
    margin-top: 16px;
    text-align: center;
    font-size: 13px;
    color: #94a3b8;
    font-family: 'Prompt', sans-serif;
}
 
@media (max-width: 900px) {
    .bestdy-bottom-container {
        justify-content: stretch;
    }
    .bestdy-register-box {
        flex: 1;
        width: 100%;
    }
    .bestdy-feature-badges {
        flex-direction: row;
    }
    .bestdy-copyright {
        text-align: center;
    }
}