* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

body {
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 100vh;
    color: #333333;
    line-height: 1.6;
    margin: 0;
    padding: 20px;
}

.parent-checking {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 480px;
    padding: 0;
    text-align: center;
}

/* Main verification container box */
.verification-box {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 40px 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    width: 100%;
}

.parent-checking h1 {
    font-size: 24px;
    font-weight: 600;
    color: #222222;
    margin-bottom: 12px;
    line-height: 1.3;
    letter-spacing: -0.3px;
}

.parent-checking .p-explain-one {
    color: #666666;
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 32px;
    font-weight: 400;
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
}

.h-captcha-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 24px 0;
    min-height: 80px;
    padding: 10px 0;
}

.h-captcha {
    margin: 0 auto;
    display: inline-block;
}

.error-message {
    color: #d32f2f;
    font-size: 14px;
    margin-top: 20px;
    padding: 12px 16px;
    background-color: #ffebee;
    border: 1px solid #ffcdd2;
    border-radius: 6px;
    display: none;
    max-width: 100%;
    text-align: left;
}

.error-message.show {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* hCaptcha widget styling improvements */
.h-captcha iframe {
    border-radius: 4px;
}

/* Responsive design */
@media (max-width: 768px) {
    body {
        padding: 15px;
    }

    .verification-box {
        padding: 35px 25px;
    }

    .parent-checking h1 {
        font-size: 22px;
    }

    .parent-checking .p-explain-one {
        font-size: 14px;
        margin-bottom: 28px;
    }

    .h-captcha-container {
        margin: 20px 0;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .verification-box {
        padding: 30px 20px;
        border-radius: 6px;
    }

    .parent-checking h1 {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .parent-checking .p-explain-one {
        font-size: 13px;
        margin-bottom: 24px;
    }

    .h-captcha-container {
        margin: 16px 0;
    }
}

/* Loading state */
.parent-checking.loading .h-captcha-container::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    border: 3px solid rgba(51, 115, 245, 0.2);
    border-top-color: #3373f5;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-top: 20px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Smooth transitions */
.verification-box,
.error-message {
    transition: all 0.3s ease;
}

