/* Form Landing Page Styles */
.flp-landing-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.flp-container {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.flp-title {
    text-align: center;
    color: #333;
    margin-bottom: 10px;
    font-size: 32px;
}

.flp-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    font-size: 16px;
}

.flp-form-section {
    margin-bottom: 30px;
}

.flp-form-group {
    margin-bottom: 20px;
}

.flp-form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
    font-size: 14px;
}

.flp-form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.flp-form-group input:focus {
    outline: none;
    border-color: #667eea;
}

.flp-terms-group {
    margin-top: 15px !important;
    margin-bottom: 25px !important;
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center !important;
    width: 100% !important;
}

.flp-checkbox-label {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    cursor: pointer;
    font-weight: normal !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Target input specifically within terms group to override generic form styles */
.flp-terms-group input[type="checkbox"] {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    min-height: 18px !important;
    margin: 0 10px 0 0 !important;
    padding: 0 !important;
    cursor: pointer;
    flex-shrink: 0;
    accent-color: #2271b1;
    display: inline-block !important;
    appearance: auto !important;
    /* Ensure it looks like a checkbox */
    -webkit-appearance: checkbox !important;
    border: 1px solid #787c82 !important;
    box-shadow: none !important;
    outline: none !important;
}

.flp-checkbox-text {
    font-size: 15px !important;
    color: #333 !important;
    line-height: 1.4 !important;
    font-weight: 400 !important;
    /* Force normal weight */
    text-align: left !important;
}

.flp-checkbox-text a {
    color: #2271b1 !important;
    /* WordPress Link Blue */
    text-decoration: underline !important;
    font-weight: 600 !important;
    box-shadow: none !important;
}

.flp-checkbox-text a:hover {
    color: #135e96 !important;
    text-decoration: none !important;
}

.flp-button {
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    box-sizing: border-box;
}

.flp-button-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.flp-button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.flp-button-secondary {
    background: #f5f5f5;
    color: #333;
    margin-top: 10px;
}

.flp-button-secondary:hover {
    background: #e0e0e0;
}

.flp-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Loading Button States */
.flp-button-loading {
    position: relative;
    pointer-events: none;
}

.flp-button-loading:hover {
    transform: none !important;
}

/* Spinner for regular buttons */
.flp-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: flpSpin 0.6s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
}

/* Spinner for center circle button */
.flp-spinner-inline {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: flpSpin 0.8s linear infinite;
    z-index: 10;
}

@keyframes flpSpin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Loading state for center circle */
.flp-spin-center-circle.flp-button-loading .flp-spin-center-content {
    opacity: 0.5;
}

.flp-form-disabled {
    opacity: 0.7;
    pointer-events: none;
}

.flp-form-disabled input {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

.flp-social-section {
    text-align: center;
    margin: 30px 0;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}

.flp-social-section h3 {
    margin-bottom: 20px;
    color: #333;
    font-size: 18px;
}

.flp-social-icons {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    width: 100%;
}

.flp-social-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 10px;
    background: #f8f9fa;
    border-radius: 10px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
    flex-shrink: 0;
    width: 90px;
}

.flp-social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.flp-social-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-bottom: 6px;
}

.flp-social-icon-wrapper svg {
    width: 28px;
    height: 28px;
    transition: transform 0.3s;
}

.flp-social-name {
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}

/* Facebook */
.flp-social-icon[href*="facebook"] {
    background: #1877F2;
    color: #fff;
}

.flp-social-icon[href*="facebook"] svg {
    fill: #fff;
}

.flp-social-icon[href*="facebook"]:hover {
    background: #0d65d9;
}

/* Instagram */
.flp-social-icon[href*="instagram"] {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #fff;
}

.flp-social-icon[href*="instagram"] svg {
    fill: #fff;
}

.flp-social-icon[href*="instagram"]:hover {
    background: linear-gradient(45deg, #d87d2a 0%, #c75530 25%, #b91e36 50%, #a91b58 75%, #9a1270 100%);
}

/* YouTube */
.flp-social-icon[href*="youtube"] {
    background: #FF0000;
    color: #fff;
}

.flp-social-icon[href*="youtube"] svg {
    fill: #fff;
}

.flp-social-icon[href*="youtube"]:hover {
    background: #cc0000;
}

/* Pinterest */
.flp-social-icon[href*="pinterest"] {
    background: #E60023;
    color: #fff;
}

.flp-social-icon[href*="pinterest"] svg {
    fill: #fff;
}

.flp-social-icon[href*="pinterest"]:hover {
    background: #b8001c;
}

/* TikTok */
.flp-social-icon[href*="tiktok"] {
    background: #000000;
    color: #fff;
}

.flp-social-icon[href*="tiktok"] svg {
    fill: #fff;
}

.flp-social-icon[href*="tiktok"]:hover {
    background: #333333;
}

.flp-social-instructions {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    text-align: left;
}

.flp-social-instructions h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    font-size: 18px;
}

.flp-social-instructions ol {
    margin: 0;
    padding-left: 25px;
}

.flp-social-instructions li {
    margin-bottom: 10px;
    color: #555;
    line-height: 1.6;
}

.flp-next-section {
    text-align: center;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}

.flp-message {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: none;
    line-height: 1.6;
}

.flp-message.error {
    background: #fee;
    color: #c33;
    border: 1px solid #fcc;
    display: block;
}

.flp-message.success {
    background: #efe;
    color: #3c3;
    border: 1px solid #cfc;
    display: block;
}

.flp-message.success strong {
    font-size: 18px;
    color: #2a7;
    display: block;
    margin: 8px 0;
}

.flp-message.info {
    background: #e3f2fd;
    color: #1976d2;
    border: 1px solid #90caf9;
    display: block;
}

/* Code Page */
.flp-code-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flp-code-page .flp-container {
    text-align: center;
}

.flp-code-page h2 {
    color: #333;
    margin-bottom: 10px;
}

.flp-code-page p {
    color: #666;
    margin-bottom: 30px;
}

.flp-code-form {
    max-width: 400px;
    margin: 0 auto;
}

.flp-code-form input {
    font-size: 24px;
    text-align: center;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-weight: bold;
}

/* Wheel Page */
.flp-wheel-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.flp-wheel-page::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.3;
    animation: backgroundMove 20s linear infinite;
}

@keyframes backgroundMove {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(40px, 40px);
    }
}

.flp-wheel-page .flp-container {
    max-width: 1000px;
    background: #fff;
    border-radius: 30px;
    padding: 60px 50px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

.flp-wheel-page h2 {
    color: #2d3748;
    margin-bottom: 15px;
    font-size: 36px;
    font-weight: 800;
    text-shadow: none;
    letter-spacing: -0.5px;
    text-align: center;
}

.flp-wheel-subtitle {
    color: #718096;
    font-size: 16px;
    margin-bottom: 35px;
    font-weight: 500;
    text-align: center;
}

.flp-wheel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    max-width: 750px;
    width: 100%;
}

.flp-wheel-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    aspect-ratio: 1;
    padding: 0;
    background: transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

#flp-wheel-canvas {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.3));
    background: transparent;
    display: block;
    pointer-events: none;
    will-change: transform;
    transform: translateZ(0);
}

.flp-wheel-pointer {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.flp-wheel-pointer svg {
    width: 60px;
    height: 60px;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.25));
    animation: pointerBounce 2s ease-in-out infinite;
}

@keyframes pointerBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* Center Circle Spin Button */
.flp-spin-center-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    box-shadow:
        0 0 0 8px rgba(255, 255, 255, 0.95),
        0 0 0 10px rgba(102, 126, 234, 0.3),
        0 0 0 15px rgba(255, 255, 255, 0.8),
        0 8px 30px rgba(102, 126, 234, 0.5);
    cursor: pointer;
    z-index: 101;
    overflow: hidden;
    pointer-events: auto;
    transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.flp-spin-center-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    position: relative;
    z-index: 2;
}

.flp-spin-text {
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.flp-spin-center-circle:hover {
    transform: translate(-50%, -50%) scale(1.05);
}

.flp-spin-center-circle:active,
.flp-spin-center-circle.flp-button-clicking {
    transform: translate(-50%, -50%) scale(0.95);
    transition: transform 0.05s ease;
}

.flp-spin-center-circle:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: translate(-50%, -50%);
}

.flp-spin-center-circle:disabled:hover {
    transform: translate(-50%, -50%);
    box-shadow:
        0 0 0 10px rgba(255, 255, 255, 0.95),
        0 0 0 12px rgba(102, 126, 234, 0.3),
        0 0 0 20px rgba(255, 255, 255, 0.8),
        0 10px 40px rgba(102, 126, 234, 0.5);
}

/* Remove old button animation */
.old-spin-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

/* Winner Result */
.flp-winner-result {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flp-winner-content {
    text-align: center;
    color: #fff;
}

.flp-winner-content h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.flp-winner-content #flp-prize-name {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
}

.flp-winner-content #flp-prize-description {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Congratulations Page */
.flp-congratulations-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flp-congratulations-content {
    text-align: center;
    color: #fff;
}

.flp-congratulations-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.flp-won-prize-box {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 30px;
    margin: 30px auto;
    max-width: 500px;
}

.flp-won-prize-box h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
    font-weight: 600;
    text-shadow: none;
}

.flp-won-prize-name {
    font-size: 36px;
    font-weight: bold;
    color: #ffd700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 10px;
}

.flp-won-prize-desc {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.flp-congratulations-content p {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.flp-congratulations-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.flp-congratulations-buttons .flp-button {
    max-width: 200px;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .flp-container {
        padding: 30px 20px;
    }

    .flp-title {
        font-size: 24px;
    }

    .flp-social-icons {
        gap: 6px;
        overflow-x: auto;
        justify-content: flex-start;
        padding: 0 5px;
    }

    .flp-social-icon {
        width: 65px;
        padding: 8px 5px;
        flex-shrink: 0;
        border-radius: 8px;
    }

    .flp-social-icon-wrapper {
        width: 32px;
        height: 32px;
        margin-bottom: 4px;
    }

    .flp-social-icon-wrapper svg {
        width: 22px;
        height: 22px;
    }

    .flp-social-name {
        font-size: 10px;
        line-height: 1.2;
    }

    .flp-wheel-page {
        padding: 30px 16px;
    }

    .flp-wheel-page .flp-container {
        max-width: 100%;
        padding: 35px 20px;
        border-radius: 24px;
    }

    .flp-wheel-page h2 {
        font-size: 32px;
        margin-bottom: 10px;
    }

    .flp-wheel-subtitle {
        font-size: 14px;
        margin-bottom: 30px;
    }

    .flp-wheel-wrapper {
        max-width: 100%;
        margin-bottom: 20px;
    }

    .flp-wheel-container {
        padding: 0;
    }

    .flp-wheel-pointer {
        top: -20px;
    }

    .flp-wheel-pointer svg {
        width: 45px;
        height: 45px;
    }

    .flp-spin-center-circle {
        width: 90px;
        height: 90px;
        box-shadow:
            0 0 0 6px rgba(255, 255, 255, 0.95),
            0 0 0 8px rgba(102, 126, 234, 0.3),
            0 0 0 12px rgba(255, 255, 255, 0.8),
            0 6px 20px rgba(102, 126, 234, 0.5);
    }

    .flp-spin-text {
        font-size: 12px;
        letter-spacing: 1.5px;
    }


    .flp-spin-text {
        font-size: 18px;
        letter-spacing: 2px;
    }

    .flp-wheel-wrapper {
        max-width: 100%;
    }

    .flp-won-prize-box {
        padding: 20px;
        margin: 20px auto;
    }

    .flp-won-prize-box h3 {
        font-size: 20px;
    }

    .flp-won-prize-name {
        font-size: 28px;
    }

    .flp-won-prize-desc {
        font-size: 16px;
    }

    .flp-congratulations-content h1 {
        font-size: 36px;
    }

    .flp-congratulations-buttons {
        flex-direction: column;
        align-items: center;
    }

    .flp-congratulations-buttons .flp-button {
        max-width: 100%;
    }
}