/* Value Stacking P10 - Where I Show Up Page Styles */
@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@300;400;500;600;700&display=swap');

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.page-template-page-vs-p10-where-i-show-up {
    font-family: 'Kanit', sans-serif;
    background: #E7243B;
    overflow-x: hidden;
    color: #ffffff;
}

.vs-p10-container {
    width: 100%;
    min-height: 100vh;
    position: relative;
    background: #E7243B;
}

/* Hero Section */
.vs-p10-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 120px; /* Account for fixed header */
}

.vs-p10-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
}

/* Floating Images - Same patterns as P2-P9 */
.vs-p10-floating-images {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.vs-p10-float-img {
    position: absolute;
    max-width: 120px;
    height: auto;
    opacity: 0.7;
    filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.3));
    transition: all 0.3s ease;
}

.vs-p10-float-1 {
    top: 15%;
    left: 8%;
    max-width: 100px;
    animation: vs-p10-float1 8s ease-in-out infinite;
}

.vs-p10-float-2 {
    top: 25%;
    right: 12%;
    max-width: 110px;
    animation: vs-p10-float2 10s ease-in-out infinite reverse;
}

.vs-p10-float-3 {
    bottom: 30%;
    left: 5%;
    max-width: 95px;
    animation: vs-p10-float3 12s ease-in-out infinite;
}

.vs-p10-float-4 {
    top: 60%;
    right: 8%;
    max-width: 105px;
    animation: vs-p10-float4 9s ease-in-out infinite reverse;
}

.vs-p10-float-5 {
    bottom: 15%;
    right: 20%;
    max-width: 115px;
    animation: vs-p10-float5 11s ease-in-out infinite;
}

.vs-p10-float-6 {
    top: 45%;
    left: 15%;
    max-width: 90px;
    animation: vs-p10-float6 7s ease-in-out infinite reverse;
}

/* Floating Animations - Same as P2-P9 */
@keyframes vs-p10-float1 {
    0%, 100% { transform: translateY(0px) translateX(0px) rotate(0deg); }
    25% { transform: translateY(-30px) translateX(20px) rotate(5deg); }
    50% { transform: translateY(-15px) translateX(-10px) rotate(-3deg); }
    75% { transform: translateY(-35px) translateX(15px) rotate(8deg); }
}

@keyframes vs-p10-float2 {
    0%, 100% { transform: translateY(0px) translateX(0px) rotate(0deg); }
    33% { transform: translateY(-25px) translateX(-15px) rotate(-5deg); }
    66% { transform: translateY(-40px) translateX(25px) rotate(7deg); }
}

@keyframes vs-p10-float3 {
    0%, 100% { transform: translateY(0px) translateX(0px) rotate(0deg); }
    25% { transform: translateY(-20px) translateX(30px) rotate(10deg); }
    50% { transform: translateY(-35px) translateX(-20px) rotate(-8deg); }
    75% { transform: translateY(-10px) translateX(15px) rotate(4deg); }
}

@keyframes vs-p10-float4 {
    0%, 100% { transform: translateY(0px) translateX(0px) rotate(0deg); }
    40% { transform: translateY(-30px) translateX(-25px) rotate(-6deg); }
    80% { transform: translateY(-15px) translateX(10px) rotate(9deg); }
}

@keyframes vs-p10-float5 {
    0%, 100% { transform: translateY(0px) translateX(0px) rotate(0deg); }
    30% { transform: translateY(-40px) translateX(20px) rotate(12deg); }
    70% { transform: translateY(-20px) translateX(-30px) rotate(-7deg); }
}

@keyframes vs-p10-float6 {
    0%, 100% { transform: translateY(0px) translateX(0px) rotate(0deg); }
    50% { transform: translateY(-25px) translateX(-15px) rotate(-10deg); }
}

.vs-p10-hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.vs-p10-content-wrapper {
    width: 100%;
}

/* Main Title */
.vs-p10-main-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 30px;
    color: #ffffff;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.vs-p10-highlight {
    color: #ffffff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    background: linear-gradient(45deg, #FED638, #ffffff, #FED638);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: vs-p10-title-glow 3s ease-in-out infinite;
}

@keyframes vs-p10-title-glow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Subtitle */
.vs-p10-subtitle {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    font-weight: 400;
    line-height: 1.6;
    color: #ffffff;
    max-width: 600px;
    margin: 0 auto 50px;
}

.vs-p10-subtitle strong {
    color: #FED638;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(254, 214, 56, 0.5);
}

/* Form Container */
/* Form Container - เปลี่ยนเป็นสีขาว */
.vs-p10-form-container {
    background: #ffffff;
    border: 2px solid rgba(231, 36, 59, 0.2);
    border-radius: 25px;
    padding: 60px 50px;
    margin-top: 40px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.vs-p10-form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(254, 214, 56, 0.05), rgba(255, 255, 255, 0.02), rgba(254, 214, 56, 0.05));
    background-size: 200% 200%;
    animation: vs-p10-container-glow 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes vs-p10-container-glow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Form Styles */
.vs-p10-form {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    z-index: 2;
}

.vs-p10-form-group {
    position: relative;
    margin-bottom: 60px;
}

/* P10 Input Styles */
.vs-p10-input-container {
    position: relative;
    width: 100%;
    margin-bottom: 30px;
}

.vs-p10-input {
    width: 100%;
    padding: 20px 0 20px 0;
    font-size: 1.4rem;
    font-weight: 500;
    color: #2c3e50;
    background: transparent;
    border: none;
    border-bottom: 3px solid rgba(231, 36, 59, 0.3);
    outline: none;
    font-family: 'Kanit', sans-serif;
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
}

.vs-p10-input::placeholder {
    color: transparent;
}

.vs-p10-input:focus {
    border-bottom-color: #E7243B;
}

/* P10 Label Styles */
.vs-p10-label {
    position: absolute;
    left: 0;
    top: 20px;
    font-size: 1.4rem;
    color: #7f8c8d;
    font-weight: 500;
    pointer-events: none;
    transition: all 0.4s ease;
    font-family: 'Kanit', sans-serif;
    z-index: 1;
}

/* P10 Label Animation */
.vs-p10-input:focus + .vs-p10-label,
.vs-p10-input:valid + .vs-p10-label,
.vs-p10-input:not(:placeholder-shown) + .vs-p10-label {
    transform: translateY(-35px) scale(0.85);
    color: #E7243B;
    font-weight: 600;
}

/* Keep label position when input has value */
.vs-p10-input:not(:focus):valid + .vs-p10-label,
.vs-p10-input:not(:focus):not(:placeholder-shown) + .vs-p10-label {
    transform: translateY(-35px) scale(0.85);
    color: #2c3e50;
    font-weight: 500;
}

/* P10 Underline Animation */
.vs-p10-underline {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #FED638, #ffffff, #FED638);
    background-size: 200% 100%;
    transition: width 0.5s ease;
    animation: vs-p10-underline-glow 2s ease-in-out infinite;
}

.vs-p10-input:focus ~ .vs-p10-underline {
    width: 100%;
}

@keyframes vs-p10-underline-glow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Tips Section */
.vs-p10-tips-section {
    background: rgba(231, 36, 59, 0.05);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(231, 36, 59, 0.2);
    border-radius: 20px;
    padding: 25px;
    margin-top: 20px;
    position: relative;
    overflow: hidden;
}

.vs-p10-tips-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(254, 214, 56, 0.03), transparent);
    animation: vs-p10-tips-glow 5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes vs-p10-tips-glow {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

.vs-p10-tips-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.vs-p10-tips-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.vs-p10-tips-btn {
    background: #E7243B;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Kanit', sans-serif;
}

.vs-p10-tips-btn:hover {
    background: #FED638;
    color: #E7243B;
    transform: scale(1.05);
}

.vs-p10-tips-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.5s ease;
}

.vs-p10-tips-content.active {
    max-height: 500px;
    opacity: 1;
    margin-top: 15px;
}

.vs-p10-tips-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #34495e;
    margin: 0;
}

/* Submit Button - Grand Final Style */
.vs-p10-submit-button {
    padding: 20px 100px;
    background: linear-gradient(45deg, #E7243B, #FED638);
    background-size: 200% 200%;
    color: #ffffff;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    font-size: 1.5rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s ease;
    font-family: 'Kanit', sans-serif;
    box-shadow: 10px 10px 0px 0px #FED638;
    margin-top: 40px;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: vs-p10-button-glow 3s ease-in-out infinite;
}

@keyframes vs-p10-button-glow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.vs-p10-submit-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.vs-p10-submit-button:hover::before {
    left: 100%;
}

.vs-p10-submit-button:hover {
    background: linear-gradient(45deg, #FED638, #ffffff);
    color: #E7243B;
    transform: translateY(-5px);
    box-shadow: 15px 15px 0px 0px #408aee;
    border-color: #E7243B;
    text-shadow: 0 0 10px rgba(231, 36, 59, 0.5);
}

.vs-p10-submit-button:active {
    transform: translateY(0px);
    box-shadow: 5px 5px 0px 0px #FED638;
}

.vs-p10-btn-text {
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Additional Floating Elements */
.vs-p10-floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.vs-p10-float-circle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(254, 214, 56, 0.15), rgba(255, 127, 165, 0.15));
    animation: vs-p10-circle-float 20s linear infinite;
}

.vs-p10-float-circle-1 {
    width: 80px;
    height: 80px;
    top: 20%;
    right: 15%;
    animation-delay: -2s;
}

.vs-p10-float-circle-2 {
    width: 60px;
    height: 60px;
    bottom: 25%;
    left: 10%;
    animation-delay: -8s;
}

.vs-p10-float-circle-3 {
    width: 100px;
    height: 100px;
    top: 70%;
    right: 25%;
    animation-delay: -15s;
}

.vs-p10-float-triangle {
    position: absolute;
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-bottom: 35px solid rgba(37, 26, 247, 0.2);
    top: 35%;
    left: 20%;
    animation: vs-p10-triangle-rotate 18s linear infinite;
}

.vs-p10-float-square {
    position: absolute;
    width: 35px;
    height: 35px;
    background: rgba(255, 127, 165, 0.2);
    top: 80%;
    left: 30%;
    animation: vs-p10-square-bounce 14s ease-in-out infinite;
    transform: rotate(45deg);
}

@keyframes vs-p10-circle-float {
    0%, 100% { transform: translateY(0px) translateX(0px) rotate(0deg); }
    25% { transform: translateY(-40px) translateX(25px) rotate(90deg); }
    50% { transform: translateY(-20px) translateX(-20px) rotate(180deg); }
    75% { transform: translateY(-50px) translateX(15px) rotate(270deg); }
}

@keyframes vs-p10-triangle-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes vs-p10-square-bounce {
    0%, 100% { transform: rotate(45deg) translateY(0px); }
    50% { transform: rotate(45deg) translateY(-25px); }
}

/* Error States */
.vs-p10-input.error {
    border-bottom-color: #ff6b6b;
    animation: vs-p10-error-shake 0.6s ease-in-out;
}

.vs-p10-input.error + .vs-p10-label {
    color: #ff6b6b;
}

.vs-p10-input.success {
    border-bottom-color: rgba(255, 255, 255, 0.4);
}

.vs-p10-input.success + .vs-p10-label {
    color: #ffffff;
}

@keyframes vs-p10-error-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    75% { transform: translateX(8px); }
}

/* P10 Validation Messages */
.vs-form-message {
    position: absolute;
    bottom: -50px;
    left: 0;
    font-size: 1rem;
    font-weight: 500;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    font-family: 'Kanit', sans-serif;
    background: rgba(255, 255, 255, 0.95);
    padding: 8px 15px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    white-space: nowrap;
    max-width: 100%;
    text-overflow: ellipsis;
    overflow: hidden;
    z-index: 10;
}

.vs-form-message.error {
    color: #dc2626;
    border-color: #ff6b6b;
}

.vs-form-message.show {
    opacity: 1;
    transform: translateY(0);
}

/* Loading State for Final Button */
.vs-p10-submit-button.loading {
    pointer-events: none;
    opacity: 0.8;
}

.vs-p10-submit-button.loading .vs-p10-btn-text::after {
    content: '...';
    animation: vs-p10-loading-dots 1.5s infinite;
}

@keyframes vs-p10-loading-dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .vs-p10-hero {
        padding: 100px 0 60px 0;
    }
    
    .vs-p10-form-container {
        padding: 40px 30px;
        margin-top: 30px;
        border-radius: 20px;
    }
    
    .vs-p10-form {
        gap: 0;
    }
    
    .vs-p10-input {
        font-size: 1.2rem;
        padding: 15px 0;
        border-bottom-width: 2px;
    }
    
    .vs-p10-label {
        font-size: 1.2rem;
        top: 15px;
    }
    
    .vs-p10-input:focus + .vs-p10-label,
    .vs-p10-input:valid + .vs-p10-label,
    .vs-p10-input:not(:placeholder-shown) + .vs-p10-label {
        transform: translateY(-30px) scale(0.85);
    }
    
    .vs-p10-input:not(:focus):valid + .vs-p10-label,
    .vs-p10-input:not(:focus):not(:placeholder-shown) + .vs-p10-label {
        transform: translateY(-30px) scale(0.85);
        color: #E7243B;
        font-weight: 500;
        text-shadow: none;
    }
    
    .vs-p10-submit-button {
        padding: 18px 80px;
        font-size: 1.3rem;
        box-shadow: 8px 8px 0px 0px #FED638;
        margin-top: 30px;
        min-width: 250px;
    }
    
    .vs-p10-submit-button:hover {
        box-shadow: 12px 12px 0px 0px #408aee;
    }
    
    .vs-p10-tips-header {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    
    .vs-p10-tips-btn {
        align-self: center;
        max-width: 150px;
    }
    
    /* Adjust floating images for mobile */
    .vs-p10-float-img {
        max-width: 80px;
        opacity: 0.5;
    }
    
    .vs-p10-float-1 { max-width: 70px; }
    .vs-p10-float-2 { max-width: 75px; }
    .vs-p10-float-3 { max-width: 65px; }
    .vs-p10-float-4 { max-width: 70px; }
    .vs-p10-float-5 { max-width: 80px; }
    .vs-p10-float-6 { max-width: 60px; }
    
    /* Adjust floating elements */
    .vs-p10-float-circle-1 { width: 60px; height: 60px; }
    .vs-p10-float-circle-2 { width: 45px; height: 45px; }
    .vs-p10-float-circle-3 { width: 75px; height: 75px; }
    
    .vs-p10-float-square { width: 25px; height: 25px; }
}

@media (max-width: 480px) {
    .vs-p10-form-container {
        padding: 30px 20px;
    }
    
    .vs-p10-input {
        font-size: 1.1rem;
    }
    
    .vs-p10-label {
        font-size: 1.1rem;
    }
    
    .vs-p10-submit-button {
        padding: 15px 60px;
        font-size: 1.2rem;
        min-width: 220px;
        box-shadow: 6px 6px 0px 0px #FED638;
    }
    
    .vs-p10-submit-button:hover {
        box-shadow: 8px 8px 0px 0px #408aee;
    }
    
    .vs-form-message {
        font-size: 0.9rem;
        padding: 6px 12px;
        bottom: -45px;
        white-space: normal;
        max-width: 90%;
    }
    
    .vs-p10-form-group {
        margin-bottom: 55px;
    }
    
    .vs-p10-tips-section {
        padding: 20px 15px;
    }
    
    .vs-p10-tips-title {
        font-size: 1.1rem;
    }
    
    .vs-p10-tips-text {
        font-size: 1rem;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #FED638, #E7243B);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #E7243B, #FED638);
}