/*
Theme Name:   Flatsome Child — Tự Chối Bỏ Cuộc
Theme URI:    https://tuchoibocuoc.com
Description:  Child theme cho tuchoibocuoc.com — chia sẻ skill xây thu nhập online. Brand-first, affiliate-aware.
Author:       Lê Thanh Thiên
Author URI:   https://tuchoibocuoc.com
Template:     flatsome
Version:      1.0.0
Tags:         tu-choi-bo-cuoc, content-creator, affiliate, vietnamese
Text Domain:  flatsome-child-tcbc
*/

/* Parent theme loaded via functions.php enqueue */
/* Main styles in: assets/css/tcbc-styles.css */

.search-bar{
	position: relative;
}
.search-bar svg{
	position: absolute;
	right: 10px !important;
	left: unset;
	transform: translatey(0);
}
input#skillSearch {
	border-radius: 8px;

}

button.tcbc__menu-toggle {
	padding: 0;
	margin: 0;
	right: 0;
	position: absolute;
	right: 15px;
}

.site-header.tcbc__site-header li{
	margin-bottom: 0;
	padding-bottom: 0;
}
.site-header.tcbc__site-header li a{
	padding-bottom: 0;
	margin-bottom: 0;
	font-size: 18px;
	font-weight: bold;
}
.nav-links {
	display: flex;
	gap: 28px;
	list-style: none;
	padding: 0;
	margin: 0;
}

/* Popup get links */

.form__getlink {
    position: fixed !important;
    inset: 0;
    z-index: 99999;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 18px !important;

    visibility: hidden;
    opacity: 0;
    pointer-events: none;

    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(5px);

    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.form__getlink.is-active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

/* Cột chứa popup */
.form__getlink > .col {
    position: relative;
    width: 100% !important;
    max-width: 520px !important;
    flex-basis: 520px !important;
    padding: 0 !important;

    transform: translateY(15px) scale(0.97);
    transition: transform 0.25s ease;
}

.form__getlink.is-active > .col {
    transform: translateY(0) scale(1);
}

/* Khung popup trắng */
.form__getlink .col-inner {
    position: relative;
    padding: 32px 28px 26px !important;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 20px;
    background:
        radial-gradient(circle at top right, rgba(204, 251, 241, 0.8), transparent 38%),
        #fff;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.28);
}

/* Nút đóng được JS tự chèn vào */
.form__getlink .getlink-popup-close {
    position: absolute;
    top: -15px;
    right: -10px;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;

    background: #f1f5f9;
    color: #222;
    font-size: 14px;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;

    transition: all 0.2s ease;
	min-height: unset !important;
	min-width: unset !important;
	padding: 0;
	margin: 0;
	
	letter-spacing: 1;
	line-height: 1;
}

.form__getlink .getlink-popup-close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

/* Tiêu đề được JS tự chèn vào */
.form__getlink .getlink-popup-heading {
    margin-bottom: 20px;
    text-align: center;
}

.form__getlink .getlink-popup-badge {
    display: inline-flex;
    margin-bottom: 12px;
    padding: 5px 11px;
    border-radius: 999px;

    background: #ccfbf1;
    color: #0f766e;

    font-size: 12px;
    font-weight: 700;
}

.form__getlink .getlink-popup-heading h3 {
    margin: 0 0 8px;
    color: #0f172a;
    font-size: 26px;
    font-weight: 800;
    line-height: 1.25;
}

.form__getlink .getlink-popup-heading p {
    max-width: 410px;
    margin: 0 auto;
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
}

/* =========================
   FORM CF7 HIỆN TẠI
========================= */
.form__getlink .form__contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form__getlink .form-groups,
.form__getlink .submit__button {
    width: 100%;
}

.form__getlink p {
    margin: 0;
}

.form__getlink .wpcf7-form-control-wrap {
    display: block;
    margin-bottom: 10px;
}

.form__getlink input[type="text"],
.form__getlink input[type="email"] {
    width: 100%;
    height: 50px;
    margin: 0;
    padding: 0 15px;

    border: 1px solid #dbe3ec;
    border-radius: 10px;

    background: #fff;
    color: #0f172a;

    font-size: 14px;
    box-shadow: none;

    transition: all 0.2s ease;
}

.form__getlink input[type="text"]:focus,
.form__getlink input[type="email"]:focus {
    border-color: #14b8a6;
    outline: none;
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.12);
}

.form__getlink input[type="submit"] {
    width: 100%;
    min-height: 50px;
    margin: 0;
    padding: 12px 18px;

    border: 0;
    border-radius: 10px;

    background: linear-gradient(135deg, #0f766e, #14b8a6);
    color: #fff;

    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;

    cursor: pointer;
    box-shadow: 0 10px 22px rgba(15, 118, 110, 0.22);

    transition: all 0.22s ease;
}

.form__getlink input[type="submit"]:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(15, 118, 110, 0.3);
}

.form__getlink .wpcf7-spinner {
    position: absolute;
}

.form__getlink .wpcf7-response-output {
    margin: 14px 0 0 !important;
    padding: 10px 12px !important;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.5;
}

body.getlink-popup-open {
    overflow: hidden;
}

/* =========================
   MOBILE
========================= */
@media (max-width: 549px) {
    .form__getlink {
        padding: 14px !important;
    }

    .form__getlink .col-inner {
        padding: 28px 18px 20px !important;
        border-radius: 16px;
    }

    .form__getlink .getlink-popup-heading h3 {
        font-size: 22px;
    }
}
/* end popup get link */
@media (max-width: 728px) {
	p.affiliate-disclosure {
		flex-wrap: wrap;
	}
}
