/**
 * RT Contact Forms - Frontend Styles
 *
 * Styles for contact and feedback form shortcodes.
 * Uses design tokens for visual consistency with RT platform.
 */

/* ========= CONTACT FORM CONTAINER ========= */
.rt-report-wrapper .rt-contact-form-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* ========= FORM TITLE & SUBTITLE ========= */
.rt-report-wrapper .rt-contact-title {
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 1.75rem;
    color: var(--rt-text-primary);
    margin: 0 0 0.5rem 0;
    text-align: center;
    background: var(--rt-gradient-title);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.rt-report-wrapper .rt-contact-subtitle {
    text-align: center;
    color: var(--rt-text-secondary);
    font-size: 1rem;
    margin: 0 0 2rem 0;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ========= GLASS CARD FORM ========= */
.rt-report-wrapper .rt-contact-form {
    background: var(--rt-dark-card-solid);
    background: var(--rt-dark-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--rt-border-cyan);
    border-radius: var(--rt-border-radius-lg);
    padding: 2rem;
    box-shadow: var(--rt-shadow-medium);
    transition: all var(--rt-animation-speed) ease;
}

.rt-report-wrapper .rt-contact-form:hover {
    border-color: var(--rt-border-cyan-hover);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* ========= FORM GROUPS ========= */
.rt-report-wrapper .rt-contact-form .rt-form-group {
    margin-bottom: 1.25rem;
}

.rt-report-wrapper .rt-contact-form .rt-form-row {
    display: flex;
    gap: 1.25rem;
}

.rt-report-wrapper .rt-contact-form .rt-form-half {
    flex: 1;
    min-width: 0;
}

@media (max-width: 600px) {
    .rt-report-wrapper .rt-contact-form .rt-form-row {
        flex-direction: column;
        gap: 0;
    }
}

.rt-report-wrapper .rt-contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-family: 'Orbitron', monospace;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--rt-text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rt-report-wrapper .rt-contact-form .required {
    color: var(--rt-accent-red);
}

/* ========= FORM INPUTS ========= */
.rt-report-wrapper .rt-contact-form input[type="text"],
.rt-report-wrapper .rt-contact-form input[type="email"],
.rt-report-wrapper .rt-contact-form select,
.rt-report-wrapper .rt-contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--rt-border-cyan);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.4);
    color: var(--rt-text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: all var(--rt-animation-speed) ease;
}

.rt-report-wrapper .rt-contact-form input::placeholder,
.rt-report-wrapper .rt-contact-form textarea::placeholder {
    color: var(--rt-text-secondary);
}

.rt-report-wrapper .rt-contact-form input:focus,
.rt-report-wrapper .rt-contact-form select:focus,
.rt-report-wrapper .rt-contact-form textarea:focus {
    outline: none;
    border-color: var(--rt-primary-cyan);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.6);
}

.rt-report-wrapper .rt-contact-form select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2300ffff' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.rt-report-wrapper .rt-contact-form select option {
    background: #1a1a1a;
    color: var(--rt-text-primary);
    padding: 10px;
}

.rt-report-wrapper .rt-contact-form textarea {
    resize: vertical;
    min-height: 140px;
}

.rt-report-wrapper .rt-contact-form .rt-char-count {
    text-align: right;
    font-size: 0.8rem;
    color: var(--rt-text-muted);
    margin-top: 0.35rem;
}

/* ========= SUBMIT BUTTON ========= */
.rt-report-wrapper .rt-contact-form .rt-form-actions {
    margin-top: 1.5rem;
}

.rt-report-wrapper .rt-contact-form .rt-submit-btn {
    width: 100%;
    padding: 14px 24px;
    font-family: 'Orbitron', monospace;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: linear-gradient(135deg, var(--rt-accent-cyan), var(--rt-accent-teal));
    color: #000;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--rt-animation-speed) ease;
    box-shadow: var(--rt-shadow-button);
    position: relative;
    overflow: hidden;
}

.rt-report-wrapper .rt-contact-form .rt-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(100, 222, 251, 0.4);
}

.rt-report-wrapper .rt-contact-form .rt-submit-btn:active {
    transform: translateY(0);
}

.rt-report-wrapper .rt-contact-form .rt-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.rt-report-wrapper .rt-contact-form .rt-btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.rt-report-wrapper .rt-contact-form .rt-btn-loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: rt-spin 0.8s linear infinite;
}

@keyframes rt-spin {
    to { transform: rotate(360deg); }
}

.rt-report-wrapper .rt-hidden {
    display: none !important;
}

/* ========= FORM MESSAGES ========= */
.rt-report-wrapper .rt-contact-form .rt-form-messages {
    margin-top: 1rem;
    text-align: center;
}

.rt-report-wrapper .rt-contact-form .rt-form-messages.rt-success {
    padding: 1rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--rt-accent-green);
    border-radius: 8px;
    color: var(--rt-accent-green);
}

.rt-report-wrapper .rt-contact-form .rt-form-messages.rt-error {
    padding: 1rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--rt-accent-red);
    border-radius: 8px;
    color: var(--rt-accent-red);
}

/* ========= FEEDBACK FORM VARIATIONS ========= */
.rt-report-wrapper .rt-feedback-form-container {
    /* Any feedback-specific container styles */
}

.rt-report-wrapper .rt-feedback-form {
    /* Any feedback-specific form styles */
}
