/* Remove the global shadow remover */
/* 
.lottery-container, 
.lottery-container *, 
.lottery-container *:before, 
.lottery-container *:after {
    box-shadow: none !important;
}
*/

/* Target specific inner containers that might have shadows */
.half-column {
    padding: 15px;
    border-radius: 8px;
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
}

/* Add a clean container without shadow */
.lottery-container {
    text-align: center;
    font-family: Arial, sans-serif;
    padding-top: 20px;
    max-width: 1600px;
    margin: 60px auto !important;
    background: white;
    padding: 0;
    border-radius: 0;
    box-shadow: none !important;
}

/* Additional selector to target potential nested divs */
.elementor-widget-container .lottery-container,
.wpb_wrapper .lottery-container,
.vc_column-inner .lottery-container {
    padding: 0 !important;
    margin: 0 auto !important;
    box-shadow: none !important;
    max-width: 100% !important;
}

#lottery-form {
    margin-bottom: 20px;
}
#lottery-form button {
    min-width: 120px;
    background-color: var(--wd-primary-color);
    color: white;
    border-radius: 6px;
    text-transform: uppercase;
    padding: 15px 30px;
    font-size: 1.0em;
}
#lottery-form button:hover {
    background-color: #0a3d9f;
}
.lottery-checkbox-container {
    margin: 15px 0 40px;
}
#lottery-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 20px;
    margin: 0 auto;
    width: 100%;
    max-width: 100%;
}

/* Force 10x10 grid with high specificity to override theme styles */
.lottery-container #lottery-grid {
    grid-template-columns: repeat(10, 1fr) !important;
    width: 100% !important;
    max-width: 100% !important;
}

.lottery-card {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1/1;
    cursor: pointer;
    background: #fff !important;
    box-sizing: border-box !important;
    position: relative;
    transition: transform .12s ease, box-shadow .12s ease;
}

.lottery-card.flipped {
    /* border: 1px solid #000 !important; */
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1/1 !important;
}

.lottery-card:not(.flipped) {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1/1;
    background-color: transparent !important;
    background-image: url('6664427-v2.png') !important;
    background-size: contain !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    border: none !important;
    border-width: 0 !important;
    border-style: none !important;
    border-color: transparent !important;
    outline: none !important;
}

/* Hover/Focus cues (only for enabled cards) */
.lottery-card:not(.disabled):hover,
.lottery-card:not(.disabled):focus-within {
    transform: scale(1.04);
    z-index: 2;
    box-shadow: 0 6px 16px rgba(0,0,0,0.12), inset 0 0 0 2px #1C61E7;
}

/* Additional rule for stronger specificity */
.lottery-container .lottery-card:not(.flipped) {
    border: none !important;
}

.lottery-card-inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.lottery-card.flipped .lottery-card-inner {
    transform: rotateY(180deg);
}

.lottery-card-front,
.lottery-card-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    color: white;
    font-weight: bold;
    font-size: 14px;
    box-sizing: border-box !important;
}

.lottery-card-front {
    background-color: #ffffff;
    color: #000000;
    /* border: 1px solid #000000; */
}

.lottery-card-back {
    transform: rotateY(180deg);
    padding: 8px;
    color: #000;
    line-height: 1.2;
    border: 1px solid #ddd;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
}

.grand-prize {
    background-color: #FFD700;
    color: #000;
}

.second-prize {
    background-color: #C0C0C0;
    color: #000;
}

.third-prize {
    background-color: #CD7F32;
    color: #fff;
}

.normal-prize {
    background-color: #FFFFFF;
    color: #000;
    border: 1px solid #ddd;
}

#lottery-result {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #1e73be12;
    max-width: 500px;
    margin: 70px auto 0;
    position: relative;
}
p#coupon-code span {
    font-weight: 700;
    color: #000;
}
#lottery-result:before,
#lottery-result:after{
    position: absolute;
    content: "";
    height: 40px;
    border-radius: 40px;
    z-index: 1;
    top: 70px;
    background-color: #ffffff;
    width: 40px;
}
#lottery-result:before {
    left: -20px;
}
#lottery-result:after {
    right: -20px;
}
.newsletter-checkbox {
    margin: 10px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}
p.error {
    margin: 0;
    color: red;
}
.main-column ul li {
    list-style-type: none;
}
.main-column ul {
    padding: 0;
    margin: 0;
}
/* Make main column full width */
.main-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    text-align: left;
    gap: 20px;
    margin-bottom: 30px;
    width: 100%;
}
#lottery-form .form-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}
/* Ensure no extra nested containers */
.lottery-intro, 
.lottery-container > div {
    width: 100%;
    padding: 0;
    margin: 0 auto;
}
@media(max-width: 767px){
    #lottery-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 16px;
        width: 96%;
        max-width: 96%;
    }
    .lottery-container {
        padding: 0 10px;
    }
    .lottery-card, 
    .lottery-card:not(.flipped) {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 1/1;
    }
    .lottery-card-back {
        font-size: 12px;
    }
    .main-column {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-bottom: 20px;
    }
    #lottery-form .form-group {
        grid-template-columns: 1fr;
    }
    .lottery-checkbox-container {
        text-align: left;
    }
    .lottery-checkbox-container input {
        width: 30px;
        height: 30px;
    }
}

/* Remove the global shadow remover at the bottom */
/*
body .lottery-container,
.elementor .lottery-container,
.wpb_content_element .lottery-container,
.elementor-element .lottery-container,
.elementor-widget-container .lottery-container {
    box-shadow: none !important;
}
*/

.lottery-header {
    text-align: center;
    margin-bottom: 20px;
}

.lottery-logo {
    max-width: 150px;
    height: auto;
    margin: 0 auto 20px;
    display: block;
}

/* Birthday field wrapper with tooltip */
.birthday-field-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

/* Date input styling for better UX */
#birthday-input {
    position: relative;
    color: #666;
    font-family: inherit;
    flex: 1;
}

#birthday-input:focus {
    outline: none;
    border-color: var(--wd-primary-color, #1e73be);
    box-shadow: 0 0 0 2px rgba(30, 115, 190, 0.2);
}

#birthday-input::placeholder {
    color: #999;
    font-size: 14px;
}

/* Birthday tooltip styles */
.birthday-tooltip {
    position: relative;
    margin-left: 8px;
}

.birthday-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background-color: #1e73be;
    color: white;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    cursor: help;
    user-select: none;
    transition: background-color 0.2s ease;
}

.birthday-info-icon:hover {
    background-color: #0056b3;
}

.birthday-tooltip-content {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: 30px;
    right: 0;
    background-color: #333;
    color: white;
    text-align: left;
    padding: 12px 16px;
    border-radius: 2px;
    font-size: 13px;
    line-height: 1.5;
    width: 280px;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transform: translateY(5px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.birthday-tooltip-content::after {
    content: "";
    position: absolute;
    top: 100%;
    right: 15px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

.birthday-tooltip:hover .birthday-tooltip-content {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

/* Mobile responsive tooltip */
@media (max-width: 768px) {
    .birthday-tooltip-content {
        right: -50px;
        width: 240px;
        font-size: 12px;
        padding: 10px 14px;
    }
    
    .birthday-tooltip-content::after {
        right: 60px;
    }
}

/* Phone verification container styles */
#phone-verification-container {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 30px;
    margin: 20px 0;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#phone-verification-container h3 {
    color: #495057;
    margin-bottom: 15px;
    font-size: 1.4em;
}

#phone-verification-container p {
    color: #6c757d;
    margin-bottom: 20px;
    font-size: 1.1em;
}

/* Verification message styles */
.verification-message {
    margin: 15px 0;
    font-size: 14px;
}

.verification-message p.success {
    color: #4CAF50;
    background-color: #f1f8e9;
    padding: 12px 16px;
    border-radius: 6px;
    border-left: 4px solid #4CAF50;
    margin: 10px 0;
    font-weight: 500;
}

.verification-message p.error {
    color: #f44336;
    background-color: #ffebee;
    padding: 12px 16px;
    border-radius: 6px;
    border-left: 4px solid #f44336;
    margin: 10px 0;
    font-weight: 500;
}

.verification-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.verification-input-container {
    display: flex;
    justify-content: center;
    margin: 15px 0;
}

.verification-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

#verification-input-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 15px;
    width: 100%;
}

#send-verification-btn,
#verify-code-btn,
#resend-code-btn {
    background-color: var(--wd-primary-color, #1e73be);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.0em;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
    min-width: 160px;
}

/* Main button styling to match start lottery button */
.lottery-main-btn {
    background-color: var(--wd-primary-color) !important;
    color: white !important;
    border-radius: 6px !important;
    text-transform: uppercase !important;
    padding: 15px 30px !important;
    font-size: 1.0em !important;
    min-width: 160px !important;
}

.lottery-main-btn:hover {
    background-color: #0a3d9f !important;
}

/* Secondary button (resend) styling */
.lottery-secondary-btn {
    background-color: #6c757d !important;
    color: white !important;
    padding: 10px 20px !important;
    font-size: 0.9em !important;
    min-width: 120px !important;
}

.lottery-secondary-btn:hover {
    background-color: #545b62 !important;
}

#send-verification-btn:hover,
#verify-code-btn:hover,
#resend-code-btn:hover {
    background-color: #0a3d9f;
    transform: translateY(-1px);
}

#send-verification-btn:disabled,
#verify-code-btn:disabled,
#resend-code-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    transform: none;
}

#verification-code-input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    text-align: center;
    letter-spacing: 2px;
    width: 200px;
    max-width: 300px;
    font-weight: normal;
    margin: 0 auto;
    font-family: inherit;
    box-sizing: border-box;
}

#verification-code-input:focus {
    outline: none;
    border-color: var(--wd-primary-color, #1e73be);
    box-shadow: 0 0 0 3px rgba(30, 115, 190, 0.1);
}

/* Responsive adjustments */
@media(max-width: 767px) {
    #phone-verification-container {
        padding: 20px 15px;
        margin: 15px 0;
    }
    
    .verification-form {
        gap: 12px;
    }
    
    .verification-input-container {
        margin: 12px 0;
    }
    
    .verification-buttons {
        gap: 10px;
    }
    
    #verification-input-section {
        margin-top: 12px;
    }
    
    #send-verification-btn,
    #verify-code-btn,
    #resend-code-btn {
        width: 100%;
        max-width: 280px;
        padding: 14px 20px;
        font-size: 14px;
    }
    
    .lottery-main-btn {
        width: 100% !important;
        max-width: 280px !important;
        padding: 14px 20px !important;
        font-size: 14px !important;
    }
    
    .lottery-secondary-btn {
        width: 100% !important;
        max-width: 200px !important;
        padding: 12px 16px !important;
        font-size: 13px !important;
    }
    
    #verification-code-input {
        width: 100%;
        max-width: 280px;
    }
}

/* Form group adjustments for verification */
.form-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.form-group input[type="tel"],
.form-group input[type="text"],
.form-group input[type="email"] {
    flex: 1;
}

/* Phone input verified state */
input[readonly] {
    background-color: #e8f5e8 !important;
    border-color: #4CAF50 !important;
}

/* End of file */
