/* ============================================
   ClickSambo Contact Form Styles
   ============================================ */

/* Loading Animation Styles */
.loading-spinner {
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.path {
    animation: dash 1.5s ease-in-out infinite;
}

@keyframes dash {
    0% {
        stroke-dashoffset: 78.5;
    }
    50% {
        stroke-dashoffset: 19.625;
    }
    100% {
        stroke-dashoffset: 78.5;
    }
}

.btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
}

#submitBtn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* CAPTCHA Styles */
.captcha-container {
    width: 100%;
    margin: 20px 0;
}

.captcha-label {
    display: block;
    margin-bottom: 10px;
}

.captcha-label strong {
    display: block;
    font-size: 14px;
    color: #333;
    margin-bottom: 4px;
}

.captcha-hint {
    display: block;
    font-size: 12px;
    color: #666;
}

.captcha-wrapper {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.captcha-image-box {
    display: inline-block;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #f9f9f9;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.captcha-image-box img {
    display: block;
    width: 200px;
    height: 70px;
    user-select: none;
    -webkit-user-select: none;
    pointer-events: none;
    border-radius: 6px;
}

.captcha-refresh-btn {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.captcha-refresh-btn:hover {
    background: #f9f9f9;
    border-color: #ccc;
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}

.captcha-refresh-btn:active {
    transform: rotate(180deg);
    background: #f0f0f0;
}

.captcha-refresh-btn svg {
    color: #333;
    width: 24px;
    height: 24px;
}

.captcha-input {
    flex: 1;
    min-width: 150px;
    max-width: 200px;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-weight: 600;
    font-size: 16px;
    text-align: center;
}

@media (max-width: 768px) {
    .captcha-wrapper {
        flex-direction: column;
    }

    .captcha-input {
        max-width: 100%;
    }
}

/* Form Response Overlay */
.form-response-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.form-response-overlay.show {
    opacity: 1;
    visibility: visible;
}

.form-response-content {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    width: 90%;
    text-align: center;
    transform: translateY(-30px);
    transition: transform 0.3s ease;
}

.form-response-overlay.show .form-response-content {
    transform: translateY(0);
}

.form-response-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: scaleIn 0.5s ease;
}

.form-response-icon.success {
    background: #d4edda;
}

.form-response-icon.error {
    background: #f8d7da;
}

.form-response-icon svg {
    width: 40px;
    height: 40px;
}

.form-response-icon.success svg {
    color: #28a745;
}

.form-response-icon.error svg {
    color: #dc3545;
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.form-response-message {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.form-response-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 25px;
}

.form-response-close {
    background: #007bff;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.form-response-close:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

.form-response-close:active {
    transform: translateY(0);
}

