/* CatchON Free Trial Form Styles */

.catchon-trial-wrapper {
    max-width: 560px;
    margin: 0 auto;
    padding: 32px 16px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
    color: #1a1a2e;
    box-sizing: border-box;
}

.catchon-trial-wrapper *,
.catchon-trial-wrapper *::before,
.catchon-trial-wrapper *::after {
    box-sizing: border-box;
}

/* ── Header ── */
.catchon-trial-header {
    text-align: center;
    margin-bottom: 28px;
}

.catchon-trial-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 8px;
    color: #1a1a2e;
    line-height: 1.2;
}

.catchon-trial-subtitle {
    font-size: 0.95rem;
    color: #6b7280;
    margin: 0;
}

/* ── Card ── */
.catchon-trial-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.catchon-section-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 24px;
    color: #1a1a2e;
}

/* ── Row layout ── */
.catchon-row {
    display: flex;
    gap: 16px;
}

.catchon-row .catchon-field {
    flex: 1;
    min-width: 0;
}

/* ── Fields ── */
.catchon-field {
    margin-bottom: 20px;
}

.catchon-field label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
}

.catchon-required {
    color: #e53935;
}

.catchon-optional {
    color: #9ca3af;
    font-weight: 400;
}

.catchon-field input[type="text"],
.catchon-field input[type="email"],
.catchon-field input[type="tel"],
.catchon-field textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #1a1a2e;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    display: block;
}

.catchon-field input[type="text"]:focus,
.catchon-field input[type="email"]:focus,
.catchon-field input[type="tel"]:focus,
.catchon-field textarea:focus {
    border-color: #e53935;
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.1);
}

.catchon-field input::placeholder,
.catchon-field textarea::placeholder {
    color: #9ca3af;
}

.catchon-field textarea {
    resize: vertical;
    min-height: 80px;
}

/* ── Phone row ── */
.catchon-phone-row {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.catchon-flag-box {
    display: flex;
    align-items: center;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    padding: 0 10px;
    background: #f9fafb;
    gap: 6px;
    position: relative;
    cursor: pointer;
    transition: border-color 0.2s;
    white-space: nowrap;
}

.catchon-flag-box:focus-within {
    border-color: #e53935;
}

.catchon-flag {
    font-size: 1.2rem;
    line-height: 1;
}

.catchon-flag-box select {
    border: none;
    background: transparent;
    font-size: 0.9rem;
    color: #374151;
    cursor: pointer;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    padding-right: 4px;
}

.catchon-phone-row input[type="tel"] {
    flex: 1;
}

/* ── Custom select ── */
.catchon-select-wrap {
    position: relative;
}

.catchon-select-wrap select {
    width: 100%;
    padding: 11px 38px 11px 14px;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #1a1a2e;
    background: #fff;
    cursor: pointer;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.catchon-select-wrap select:focus {
    border-color: #e53935;
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.1);
}

.catchon-select-arrow {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
    color: #6b7280;
    pointer-events: none;
}

/* ── Button ── */
.catchon-btn {
    width: 100%;
    padding: 14px;
    background: #e53935;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
    transition: background 0.2s, transform 0.1s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    letter-spacing: 0.01em;
}

.catchon-btn:hover:not(:disabled) {
    background: #c62828;
    transform: translateY(-1px);
}

.catchon-btn:active:not(:disabled) {
    transform: translateY(0);
}

.catchon-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.catchon-btn-spinner {
    animation: catchon-spin 0.8s linear infinite;
    display: inline-block;
    font-size: 1rem;
}

@keyframes catchon-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* ── Messages ── */
.catchon-success,
.catchon-error {
    padding: 14px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

.catchon-success {
    background: #ecfdf5;
    border: 1px solid #6ee7b7;
    color: #065f46;
}

.catchon-error {
    background: #fff1f2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}

/* ── Secure note ── */
.catchon-secure-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.8rem;
    color: #6b7280;
    margin: 16px 0 0;
    text-align: center;
}

.catchon-secure-note svg {
    flex-shrink: 0;
}

/* ── Responsive ── */
@media (max-width: 480px) {
    .catchon-trial-card {
        padding: 24px 20px;
    }

    .catchon-row {
        flex-direction: column;
        gap: 0;
    }

    .catchon-trial-title {
        font-size: 1.6rem;
    }
}
