/**
 * Captcha Forms Styles
 * Shared styles for signup and contact forms with hCaptcha
 */

/* Form Container */
.captcha-form {
    width: 100%;
}

.captcha-form-fields {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Form Rows (2-column layout) */
.captcha-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 480px) {
    .captcha-form-row {
        grid-template-columns: 1fr;
    }
}

/* Form Groups */
.captcha-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.captcha-form-group .optional-label {
    font-weight: 400;
    color: rgba(255, 255, 255, 0.4);
}

.captcha-form-group label {
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
}

.captcha-form-group input,
.captcha-form-group textarea {
    width: 100%;
    background: rgba(16, 16, 18, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    color: #ffffff;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.captcha-form-group input::placeholder,
.captcha-form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.captcha-form-group input:focus,
.captcha-form-group textarea:focus {
    outline: none;
    border-color: rgba(255, 140, 0, 0.7);
    box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.1);
}

.captcha-form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Captcha Widget Container */
.captcha-widget-container {
    display: flex;
    justify-content: center;
    margin: 0.5rem 0;
    min-height: 78px;
}

/* Submit Button */
.captcha-form-btn {
    width: 100%;
    padding: 0.85rem 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 6px;
    color: #111;
    font-size: 0.95rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

.captcha-form-btn:hover:not(:disabled) {
    background: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.15);
}

.captcha-form-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Error Message */
.captcha-form-error {
    font-size: 0.8rem;
    color: rgba(248, 113, 113, 0.9);
    text-align: center;
    margin: 0;
    min-height: 1.2em;
}

/* Success State */
.captcha-form-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
    padding: 2rem 1rem;
}

.captcha-form-success i {
    font-size: 3rem;
    color: rgba(34, 197, 94, 0.9);
}

.captcha-form-success p {
    font-size: 1.25rem;
    font-weight: 500;
    color: #ffffff;
    margin: 0.5rem 0 0 0;
}

.captcha-form-success span {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Contact Form Modal (for "Get in touch" triggers) */
.contact-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.contact-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.contact-modal {
    background: rgba(22, 22, 24, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    width: 100%;
    max-width: 440px;
    max-height: 90vh;
    overflow: hidden;
    transform: scale(0.95);
    transition: transform 0.2s ease;
    margin: 1rem;
}

.contact-modal-overlay.active .contact-modal {
    transform: scale(1);
}

.contact-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-modal-header h3 {
    font-size: 1.1rem;
    font-weight: 500;
    color: #ffffff;
    margin: 0;
}

.contact-modal-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s ease;
}

.contact-modal-close:hover {
    color: #ffffff;
}

.contact-modal-body {
    padding: 1.5rem;
}

.contact-modal-intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.contact-modal-intro i {
    font-size: 2rem;
    color: rgba(255, 140, 0, 0.9);
}

.contact-modal-intro p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 480px) {
    .contact-modal {
        max-width: 100%;
        margin: 0.5rem;
        border-radius: 8px;
    }

    .contact-modal-body {
        padding: 1rem;
    }

    .captcha-form-group input,
    .captcha-form-group textarea {
        padding: 0.65rem 0.85rem;
        font-size: 0.85rem;
    }

    .captcha-form-btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}

