/* Base Template Styles */

/* Image Carousel Container */
.carousel-container {
    width: 100%;
    margin: 20px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.image-carousel {
    width: 100%;
    height: 400px;
    position: relative;
    overflow: hidden;
    background-color: hsl(106, 41%, 61%);
}

.image-carousel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.image-carousel img.active {
    opacity: 1;
}

.carousel-text {
    background-color: hsl(108, 54%, 68%);
    color: #2b9700;
    padding: 20px;
    text-align: center;
}

.carousel-text h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 600;
}

/* CAPTCHA Modal Popup */
.captcha-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.captcha-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.captcha-modal {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 450px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9) translateY(-20px);
    transition: transform 0.3s ease;
    animation: modalFadeIn 0.3s ease forwards;
}

.captcha-modal-overlay.active .captcha-modal {
    transform: scale(1) translateY(0);
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.captcha-modal-header {
    padding: 32px 32px 20px;
    text-align: center;
    border-bottom: 1px solid #e8e8e8;
}

.captcha-modal-header h3 {
    margin: 0 0 8px 0;
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    letter-spacing: -0.5px;
}

.captcha-modal-subtitle {
    margin: 0;
    font-size: 14px;
    color: #7f8c8d;
    font-weight: 400;
}

.captcha-modal-body {
    padding: 32px;
}

.captcha-code-container {
    margin-bottom: 24px;
}

.captcha-code-container label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #34495e;
    margin-bottom: 12px;
    text-align: center;
}

.captcha-code-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

.captcha-code-display {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    padding: 20px 30px;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 8px;
    text-align: center;
    border-radius: 12px;
    font-family: 'Courier New', monospace;
    user-select: none;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    text-transform: uppercase;
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    transition: opacity 0.3s ease;
}

.captcha-refresh-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    flex-shrink: 0;
}

.captcha-refresh-btn:hover {
    transform: rotate(180deg) scale(1.1);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.captcha-refresh-btn:active {
    transform: rotate(180deg) scale(0.95);
}

.captcha-refresh-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
}

.captcha-refresh-btn svg {
    width: 20px;
    height: 20px;
}

.captcha-input-container {
    margin-bottom: 16px;
}

#captchaInput {
    width: 100%;
    padding: 14px 18px;
    font-size: 18px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-weight: 600;
    font-family: 'Courier New', monospace;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

#captchaInput:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

#captchaInput::placeholder {
    text-transform: none;
    letter-spacing: normal;
    font-weight: 400;
    color: #bdc3c7;
}

#captchaMessage {
    min-height: 24px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 0;
    transition: all 0.3s ease;
}

#captchaMessage.success {
    color: #27ae60;
}

#captchaMessage.error {
    color: #e74c3c;
}

.captcha-modal-footer {
    padding: 20px 32px 32px;
    text-align: center;
}

.captcha-verify-btn {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.captcha-verify-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.captcha-verify-btn:active {
    transform: translateY(0);
}

.captcha-verify-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
}

.captcha-verify-btn span {
    position: relative;
    z-index: 1;
}

/* Page Content Area */
.page-content {
    padding: 20px 0;
}

.page-content h1 {
    color: rgb(104, 168, 0);
    margin-bottom: 20px;
    font-size: 32px;
}

.page-content p {
    margin-bottom: 15px;
    color: #000000;    
    line-height: 1.8;
}

/* Responsive Design for Template */
@media (max-width: 768px) {
    .image-carousel {
        height: 300px;
    }
    
    .carousel-text h2 {
        font-size: 24px;
    }
    
    .captcha-modal {
        width: 95%;
        max-width: 400px;
    }
    
    .captcha-modal-header {
        padding: 24px 24px 16px;
    }
    
    .captcha-modal-header h3 {
        font-size: 20px;
    }
    
    .captcha-modal-body {
        padding: 24px;
    }
    
    .captcha-code-wrapper {
        gap: 10px;
    }
    
    .captcha-code-display {
        font-size: 28px;
        letter-spacing: 6px;
        padding: 18px 24px;
        min-height: 60px;
    }
    
    .captcha-refresh-btn {
        width: 45px;
        height: 45px;
    }
    
    .captcha-refresh-btn svg {
        width: 18px;
        height: 18px;
    }
    
    #captchaInput {
        font-size: 16px;
        padding: 12px 16px;
    }
    
    .captcha-modal-footer {
        padding: 16px 24px 24px;
    }
    
    .page-content h1 {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .image-carousel {
        height: 250px;
    }
    
    .carousel-text {
        padding: 15px;
    }
    
    .carousel-text h2 {
        font-size: 20px;
    }
    
    .captcha-modal {
        width: 95%;
        max-width: 350px;
        border-radius: 12px;
    }
    
    .captcha-modal-header {
        padding: 20px 20px 12px;
    }
    
    .captcha-modal-header h3 {
        font-size: 18px;
    }
    
    .captcha-modal-subtitle {
        font-size: 13px;
    }
    
    .captcha-modal-body {
        padding: 20px;
    }
    
    .captcha-code-wrapper {
        flex-direction: column;
        gap: 10px;
    }
    
    .captcha-code-display {
        font-size: 24px;
        letter-spacing: 4px;
        padding: 16px 20px;
        min-height: 55px;
        width: 100%;
    }
    
    .captcha-refresh-btn {
        width: 100%;
        height: 45px;
        border-radius: 8px;
    }
    
    .captcha-refresh-btn svg {
        width: 18px;
        height: 18px;
    }
    
    #captchaInput {
        font-size: 16px;
        padding: 12px 14px;
        letter-spacing: 3px;
    }
    
    .captcha-modal-footer {
        padding: 12px 20px 20px;
    }
    
    .captcha-verify-btn {
        padding: 12px 20px;
        font-size: 15px;
    }
    
    .page-content h1 {
        font-size: 24px;
    }
}

