.success-message a.button {
    background-color: #0066cc;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    margin-top: 15px;
    transition: background 0.3s ease;
}
.success-message a.button:hover {
    background-color: #004999;
}


.ctkm-landing {
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    min-height: 100vh;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 10px 0 0;
}


.ctkm-wrapper {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    margin-top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}


.ctkm-title-image {
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
}

.ctkm-title-image img {
    width: clamp(240px, 90vw, 600px);
    height: auto;
    display: block;
    margin: 0 auto;
}

.ctkm-heading {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    color: #a30000;
    text-transform: uppercase;
    margin: 0;
    z-index: 1;
    position: relative;
}

.ctkm-time {
    text-align: center;
    color: #555;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
    font-weight: 500;
}

.ctkm-countdown {
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    color: #ff0000;
    margin-bottom: 5px;
    z-index: 1;
    position: relative;
}

.ctkm-success-message {
    background: rgba(255, 255, 255, 0.97);
    padding: 35px 25px;
    border-radius: 20px;
    text-align: center;
    font-size: 17px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    color: #000 !important;
    max-width: 80%;
    width: 480px;
    margin: 20px auto;
    line-height: 1.6;
    animation: zoomIn 0.6s ease forwards;
    transform-origin: center;
}

.ctkm-success-message b,
.ctkm-success-message strong {
    font-weight: 700;
    color: #b30000;
    font-size: 18px;
}

.ctkm-success-message .ticket-code {
    font-size: 20px;
    font-weight: bold;
    background: #f0f0f0;
    display: inline-block;
    padding: 8px 15px;
    margin: 12px 0;
    border-radius: 8px;
    color: #b30000;
}

.ctkm-success-message a {
    display: inline-block;
    margin-top: 20px;
    font-weight: bold;
    text-decoration: none;
    color: #0044cc;
    font-size: 16px;
}

/* Responsive */
@media (max-width: 768px) {
    .ctkm-heading {
        font-size: 20px;
        margin-top: 10px;
    }
    .ctkm-wrapper {
        padding: 0 10px;
        margin-top: 10px;
    }
    .ctkm-landing {
        padding-top: 10px;
    }
    .ctkm-title-image img {
        width: clamp(240px, 90vw, 600px);
    }
    .ctkm-countdown {
        margin-bottom: 5px;
    }
}


body.page-template-page-ctkm-landing {
    overflow-x: hidden;
}


.ctkm-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0 auto 100px;
    padding: 10px;
    background: none;
    border-radius: 0;
    max-width: 600px;
    width: 90%;
    box-shadow: none;
}

.ctkm-form label {
    font-weight: bold;
}
.ctkm-form input {
    padding: 8px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
}
.ctkm-form button {
    padding: 10px;
    font-size: 16px;
    background-color: #0066cc;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
.ctkm-form button:hover {
    background-color: #004c99;
}

body.page-template-page-ctkm-landing .ctkm-form label {
    text-align: left;
    display: block;
    color: #000;
    margin-top: 10px;
}

.animate-form {
    animation: fadeInUp 0.8s ease-out both;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.ctkm-form-title {
    text-align: center;
    font-size: 22px;
    margin-bottom: 10px;
    color: #b30000;
    text-transform: uppercase;
    font-weight: bold;
    animation: fadeInTitle 1s ease-in-out;
}

@keyframes fadeInTitle {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
.animate-success {
    animation: zoomIn 0.6s ease forwards;
    transform-origin: center;
}

@keyframes zoomIn {
    0% {
        opacity: 0;
        transform: scale(0.7);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}
.select2-container {
    z-index: 9999 !important;
}
.select2-container--default .select2-selection--single {
    background-color: #fff;
    color: #000;
}

.select2-container--default .select2-results__option {
    color: #000;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #e2e6ea;
    color: #000;
}

/* ===== CSS cho Region Selector cập nhật theo cấp hành chính mới của Việt Nam ===== */

.region-select {
    display: grid;
    gap: 15px;
    margin-top: 10px;
}

.region-select select {
    padding: 12px;
    font-size: 16px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    border: 1px solid #ddd;
    background-color: #fff;
    transition: all 0.3s ease;
}

.region-select select:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.7;
    color: #999;
}

.region-select select:focus {
    outline: none;
    border: 2px solid #007cba;
    box-shadow: 0 4px 8px rgba(0,123,186,0.2);
}

.region-select select:hover:not(:disabled) {
    border-color: #007cba;
    box-shadow: 0 3px 7px rgba(0,0,0,0.15);
}

/* Select2 styling cho region selector - Cập nhật để override các style cũ */
.select2-container--default .select2-selection--single {
    height: 48px !important;
    border-radius: 10px !important;
    border: 1px solid #ddd !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1) !important;
    background-color: #fff !important;
    color: #000 !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 46px !important;
    padding-left: 12px !important;
    font-size: 16px !important;
    color: #000 !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 46px !important;
    right: 12px !important;
}

.select2-container--default.select2-container--focus .select2-selection--single {
    border: 2px solid #007cba !important;
    box-shadow: 0 4px 8px rgba(0,123,186,0.2) !important;
}

/* Dropdown styling - Cập nhật để override */
.select2-dropdown {
    border-radius: 8px !important;
    border: 1px solid #007cba !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
    z-index: 9999 !important;
}

.select2-container--default .select2-results__option {
    color: #000 !important;
    padding: 8px 12px !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #007cba !important;
    color: #fff !important;
}

.select2-search--dropdown .select2-search__field {
    border-radius: 6px !important;
    border: 1px solid #ddd !important;
    padding: 8px 12px !important;
}

/* Loading state styling */
.region-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    color: #666;
    font-style: italic;
}

.region-loading::before {
    content: "";
    width: 16px;
    height: 16px;
    margin-right: 8px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error state styling */
.region-select select.error {
    border-color: #dc3545 !important;
    box-shadow: 0 2px 6px rgba(220,53,69,0.2) !important;
}

.select2-container--default.error .select2-selection--single {
    border-color: #dc3545 !important;
    box-shadow: 0 2px 6px rgba(220,53,69,0.2) !important;
}

/* Error tooltip styling */
.error-tooltip {
    position: absolute;
    background: #dc3545;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    top: 100%;
    left: 0;
    z-index: 1000;
    white-space: nowrap;
    margin-top: 2px;
}

/* Responsive design cho region selector */
@media (max-width: 768px) {
    .region-select select {
        font-size: 14px;
        padding: 10px;
    }
    
    .select2-container--default .select2-selection--single {
        height: 44px !important;
    }
    
    .select2-container--default .select2-selection--single .select2-selection__rendered {
        line-height: 42px !important;
        font-size: 14px !important;
    }
    
    .select2-container--default .select2-selection--single .select2-selection__arrow {
        height: 42px !important;
    }
}

