/* Two-column layout: info left, form right */
.t4cf-page {
    display: flex;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

.t4cf-info {
    flex: 0 0 280px;
}

.t4cf-info h2 {
    font-size: 18px;
    margin: 0 0 8px 0;
    text-transform: uppercase;
}

.t4cf-info p {
    margin: 0 0 24px 0;
    font-size: 15px;
    line-height: 1.5;
}

.t4cf-info a {
    color: #37ca8a;
    text-decoration: none;
}

.t4cf-info a:hover {
    text-decoration: underline;
}

.t4cf-form-wrapper {
    flex: 1;
    min-width: 0;
}

.t4cf-form-wrapper h2 {
    font-size: 18px;
    margin: 0 0 16px 0;
    text-transform: uppercase;
}

.t4cf-field {
    margin-bottom: 16px;
}

.t4cf-field label {
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
    font-size: 14px;
}

.t4cf-required {
    color: #e74c3c;
}

.t4cf-field input,
.t4cf-field textarea {
    width: 75%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 15px;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.t4cf-field input::placeholder,
.t4cf-field textarea::placeholder {
    color: #aaa;
}

.t4cf-field input:focus,
.t4cf-field textarea:focus {
    outline: none;
    border-color: #37ca8a;
    box-shadow: 0 0 0 2px rgba(55, 202, 138, 0.2);
}

/* CAPTCHA section */
.t4cf-captcha-section {
    margin-bottom: 16px;
}

.t4cf-captcha-section > label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
}

.t4cf-captcha-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #f0faf4;
    border: 2px solid #37ca8a;
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 10px;
    width: 75%;
    box-sizing: border-box;
}

.t4cf-captcha-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.t4cf-captcha-emoji-text {
    font-size: 48px;
    line-height: 1;
}

.t4cf-captcha-icon-img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: 4px;
}

.t4cf-captcha-hint {
    font-size: 16px;
    font-style: italic;
    color: #333;
    flex: 1;
}

#t4cf-captcha-refresh {
    background: none;
    border: 1px solid #37ca8a;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 20px;
    cursor: pointer;
    color: #37ca8a;
    transition: all 0.2s;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

#t4cf-captcha-refresh:hover {
    background: #37ca8a;
    color: #fff;
}

/* Status message */
.t4cf-status {
    margin-bottom: 12px;
    padding: 0;
    font-size: 14px;
    border-radius: 4px;
    display: none;
}

.t4cf-status.t4cf-success {
    display: block;
    padding: 10px 14px;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.t4cf-status.t4cf-error {
    display: block;
    padding: 10px 14px;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Submit button */
.t4cf-submit {
    display: inline-block;
    background: #37ca8a;
    color: #fff;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.t4cf-submit:hover {
    background: #2db377;
}

.t4cf-submit:disabled {
    background: #999;
    cursor: not-allowed;
}

/* Responsive: stack vertically on small screens */
@media (max-width: 768px) {
    .t4cf-page {
        flex-direction: column;
        gap: 20px;
        padding: 20px 10px;
    }
    .t4cf-info {
        flex: none;
    }
    .t4cf-captcha-card {
        flex-direction: column;
        text-align: center;
    }
}
