/* ============================================================
   Thailand HR Tech 2026 – Registration Form Styles
   ============================================================ */


/* ---- Custom Font ---- */

@font-face {
    font-family: 'DBHeavent';
    src: url('../fonts/DBHeaventBlkCondv3_2.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --primary: #0d2137;
    --accent: #0066cc;
    --accent2: #00b4d8;
    --success: #28a745;
    --bg: #eef2f7;
    --card-bg: #ffffff;
    --text: #2c3e50;
    --text-muted: #6c757d;
    --border: #d0dce8;
    --radius: 12px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'DBHeavent', sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 22px;
    line-height: 1.8;
    margin: 0;
}


/* ---- Header Banner ---- */

.header-banner {
    width: 100%;
    overflow: hidden;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-banner img {
    width: 100%;
    height: auto;
    display: block;
}


/* ---- Page Wrapper ---- */

.page-wrapper {
    background: var(--bg);
    min-height: calc(100vh - 320px);
}


/* ---- Form Header Title ---- */

.form-header {
    padding: 36px 20px 10px;
}

.form-header .form-title {
    font-size: 3.2rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.form-header .form-subtitle {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 12px;
}

.badge-theme {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: #fff;
    padding: 6px 18px;
    border-radius: 30px;
    font-size: 1.2rem;
}


/* ---- Event Info Strip ---- */

.event-desc {
    background: var(--primary);
    border-radius: var(--radius);
    padding: 18px 24px;
    color: #fff;
    margin-bottom: 10px;
}

.event-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 1.2rem;
}

.event-item i {
    color: var(--accent2);
    font-size: 1.3rem;
    margin-top: 3px;
    flex-shrink: 0;
}


/* ---- Form Sections ---- */

.form-section {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 28px 32px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--accent);
}

@media (max-width: 576px) {
    .form-section {
        padding: 20px 16px;
    }
    .section-header {
        margin: -20px -16px 22px -16px;
        border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0;
    }
}

.section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: -28px -32px 28px -32px;
    padding: 18px 28px;
    background: linear-gradient(135deg, var(--primary) 0%, #0a3560 60%, #0066cc 100%);
    border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0;
    border-bottom: none;
    position: relative;
    overflow: hidden;
}

.section-header::after {
    content: '';
    position: absolute;
    right: -30px;
    top: -30px;
    width: 130px;
    height: 130px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    pointer-events: none;
}

.section-header h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.section-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.45);
    color: #fff;
    font-weight: 700;
    font-size: 1.2rem;
    border-radius: 30px;
    backdrop-filter: blur(4px);
    flex-shrink: 0;
    white-space: nowrap;
}


/* ---- Form Labels ---- */

.form-label {
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
    font-size: 1.25rem;
}

.form-label em {
    font-style: italic;
    color: var(--text-muted);
    font-weight: 400;
}

.required {
    color: #e74c3c;
    font-weight: 700;
}


/* ---- Inputs & Selects ---- */

.form-control,
.form-select {
    border: 1.5px solid var(--border);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 1.2rem;
    font-family: 'DBHeavent', sans-serif;
    color: var(--text);
    transition: border-color 0.2s, box-shadow 0.2s;
    background-color: #fafcff;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.12);
    background-color: #fff;
    outline: none;
}


/* ---- Radio / Checkbox Groups ---- */

.radio-group,
.checkbox-group {
    background: #f8fbff;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    padding: 14px 18px;
}

.radio-group .form-check,
.checkbox-group .form-check {
    padding: 10px 0;
    border-bottom: 1px solid #eef2f7;
    display: flex;
    align-items: center;
}

.radio-group .form-check:last-child,
.checkbox-group .form-check:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.radio-group .form-check:first-child,
.checkbox-group .form-check:first-child {
    padding-top: 0;
}

.form-check-input {
    width: 18px;
    height: 18px;
    margin-top: 0;
    margin-left: 0 !important;
    float: none !important;
    cursor: pointer;
    accent-color: var(--accent);
    flex-shrink: 0;
}

.form-check-label {
    cursor: pointer;
    font-size: 1.3rem;
    padding-left: 10px;
    margin-bottom: 0;
    line-height: 1.3;
}


/* ---- Submit Button ---- */

.btn-register {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
    color: #fff;
    border: none;
    padding: 18px 56px;
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    letter-spacing: 0.5px;
    font-family: 'DBHeavent', sans-serif;
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.35);
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
    text-decoration: none;
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0, 102, 204, 0.45);
    opacity: 0.95;
    color: #fff;
}

.btn-register:active {
    transform: translateY(0);
}

.note-text {
    color: var(--text-muted);
    font-size: 1.15rem;
    margin-top: 10px;
}


/* ---- Alert messages ---- */

.alert-custom {
    border-radius: 8px;
    padding: 12px 18px;
    margin-bottom: 20px;
    font-size: 1.2rem;
}


/* ---- Bootstrap Validation Overrides (No green for valid fields) ---- */

.was-validated .form-control:valid,
.was-validated .form-select:valid {
    border-color: var(--border);
    padding-right: 16px;
    background-image: none;
    box-shadow: none;
}

.was-validated .form-control:valid:focus,
.was-validated .form-select:valid:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.12);
}

.was-validated .form-check-input:valid~.form-check-label,
.was-validated .form-check-input.is-valid~.form-check-label {
    color: var(--text);
}

.was-validated .form-check-input:valid,
.was-validated .form-check-input.is-valid {
    border-color: rgba(0, 0, 0, 0.25);
    background-color: transparent;
}

.was-validated .form-check-input:valid:checked,
.was-validated .form-check-input.is-valid:checked {
    background-color: var(--accent);
    border-color: var(--accent);
}


/* ======================================================
   SUCCESS PAGE (New Premium Design)
   ====================================================== */

.success-body {
    background: #f4f6f9;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

.success-body .site-footer {
    background: transparent;
    color: #6c757d;
    margin-top: 0;
    padding-bottom: 24px;
}


/* ── Decorative Background ── */

.sc-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 40px 16px;
    z-index: 1;
}

.bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    animation: floatShape 10s infinite alternate ease-in-out;
}

.bg-shape-1 {
    width: 400px;
    height: 400px;
    background: rgba(0, 102, 204, 0.15);
    top: -100px;
    left: -150px;
}

.bg-shape-2 {
    width: 350px;
    height: 350px;
    background: rgba(0, 180, 216, 0.15);
    bottom: -50px;
    right: -100px;
    animation-delay: -5s;
}

@keyframes floatShape {
    0% {
        transform: translate(0, 0) scale(1);
    }
    100% {
        transform: translate(30px, 40px) scale(1.1);
    }
}

.sc-inner {
    width: 100%;
    max-width: 860px;
    text-align: center;
    animation: fadeInUp 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ── Heading & Check ── */

.sc-check-wrap {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 50%;
    color: white;
    font-size: 2.2rem;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4);
    animation: scaleIn 0.5s backout 0.2s both;
}

.sc-check-ring {
    position: absolute;
    inset: -6px;
    border: 2px solid rgba(16, 185, 129, 0.3);
    border-radius: 50%;
    animation: pulseRing 2s infinite;
}

@keyframes pulseRing {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
    }
    80% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.sc-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 6px;
}

.sc-subtitle {
    font-size: 1.4rem;
    color: var(--text-muted);
    margin-bottom: 32px;
}


/* ── Ticket Container ── */

.sc-ticket {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.02);
    position: relative;
    overflow: hidden;
    margin-bottom: 24px;
}


/* Ticket Top */

.sc-ticket-top {
    padding: 36px 30px 30px;
    text-align: center;
    position: relative;
}

.sc-ticket-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 102, 204, 0.1);
    color: #0066cc;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.sc-ticket-event {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 6px;
}

.sc-ticket-theme {
    font-size: 1.3rem;
    color: var(--accent);
    margin-bottom: 28px;
}

.sc-attendee-card {
    background: #f8fafd;
    border: 1px solid #e1ecf8;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
}

.sc-attendee-item {
    display: flex;
    flex-direction: column;
}

.sc-attendee-lbl {
    font-size: 1rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 2px;
}

.sc-attendee-val {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--primary);
    word-break: break-word;
}

.sc-event-details {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.sc-detail-box {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
}

.sc-detail-box .sc-icon {
    width: 42px;
    height: 42px;
    background: #f0f5fb;
    color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.sc-text {
    display: flex;
    flex-direction: column;
}

.sc-text span {
    font-size: 0.95rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.sc-text strong {
    font-size: 1.25rem;
    color: var(--primary);
    font-weight: 700;
}


/* Separator / Divider */

.sc-ticket-divider {
    position: relative;
    height: 30px;
    display: flex;
    align-items: center;
}

.sc-notch {
    position: absolute;
    width: 30px;
    height: 30px;
    background: #f4f6f9;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.02);
}

.sc-notch.left {
    left: -15px;
}

.sc-notch.right {
    right: -15px;
}

.sc-dash {
    width: 100%;
    height: 1px;
    border-top: 2px dashed #dce2e8;
    margin: 0 16px;
}


/* Ticket Bottom */

.sc-ticket-bottom {
    padding: 30px;
    text-align: center;
    background: #fafbfc;
}

.sc-qr-container {
    display: inline-block;
    padding: 16px;
    background: white;
    border-radius: 12px;
    border: 1px solid #e1ecf8;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
    margin-bottom: 6px;
}

.sc-qr-container img {
    margin: 0 auto;
}

.sc-qr-code-text {
    font-family: 'Courier New', monospace;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 4px;
    margin-bottom: 16px;
}

.sc-qr-instruction {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}


/* ── Notice & Action ── */

.sc-email-notice {
    display: flex;
    align-items: center;
    gap: 16px;
    background: white;
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    margin-bottom: 24px;
    text-align: left;
}

.sc-email-icon {
    font-size: 2rem;
    color: var(--success);
}

.sc-email-text {
    font-size: 1.2rem;
    color: var(--text);
    line-height: 1.4;
}

.sc-email-text strong {
    color: var(--primary);
    font-size: 1.3rem;
}

.sc-action {
    text-align: center;
}

.sc-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary);
    color: white;
    padding: 14px 34px;
    border-radius: 50px;
    font-size: 1.4rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 8px 20px rgba(13, 33, 55, 0.2);
}

.sc-back-btn:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 102, 204, 0.3);
}


/* ── Responsive ── */

@media (max-width: 576px) {
    .sc-wrapper {
        padding: 30px 14px;
    }
    .sc-title {
        font-size: 2rem;
    }
    .sc-subtitle {
        font-size: 1.2rem;
        margin-bottom: 24px;
    }
    .sc-ticket-event {
        font-size: 1.8rem;
    }
    .sc-attendee-val {
        font-size: 1.3rem;
    }
    .sc-event-details {
        flex-direction: column;
        gap: 16px;
    }
    .sc-ticket-top {
        padding: 30px 20px 20px;
    }
    .sc-ticket-bottom {
        padding: 24px 20px;
    }
    .sc-qr-code-text {
        font-size: 1.8rem;
        letter-spacing: 4px;
    }
    .sc-email-notice {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
}