/* Telegram Contact Forms - Modern Frontend Styles */

/* === MODERN FORM WRAPPER === */
.tcf-form-wrapper {
    max-width: 700px;
    margin: var(--tcf-space-lg) auto;
    padding: var(--tcf-space-lg);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    border-radius: 16px !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    position: relative;
    overflow: hidden;
    transition: var(--tcf-transition-normal);
    color: #1f2937 !important;
}

.tcf-form-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        var(--tcf-color-primary), 
        var(--tcf-color-secondary), 
        var(--tcf-color-accent)
    );
    border-radius: 16px 16px 0 0;
}

.tcf-form-wrapper:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

/* === FORM HEADER === */
.tcf-form-header {
    text-align: center;
    margin-bottom: var(--tcf-space-lg);
    position: relative;
}

.tcf-form-title {
    color: #1a202c !important;
    font-size: var(--tcf-text-xl);
    font-weight: 700;
    margin-bottom: var(--tcf-space-sm);
    letter-spacing: -0.025em;
    position: relative;
}

.tcf-form-description {
    color: #64748b !important;
    font-size: var(--tcf-text-base);
    line-height: 1.5;
    max-width: 500px;
    margin: 0 auto;
    font-weight: 400;
}

/* === FORM FIELDS === */
.tcf-form-fields {
    margin-bottom: var(--tcf-space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--tcf-space-md);
}

.tcf-form-field {
    position: relative;
    animation: slideInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.tcf-form-field:nth-child(1) { animation-delay: 0.1s; }
.tcf-form-field:nth-child(2) { animation-delay: 0.2s; }
.tcf-form-field:nth-child(3) { animation-delay: 0.3s; }
.tcf-form-field:nth-child(4) { animation-delay: 0.4s; }
.tcf-form-field:nth-child(5) { animation-delay: 0.5s; }

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tcf-field-label {
    display: block;
    margin-bottom: var(--tcf-space-xs);
    font-weight: 600;
    color: #374151 !important;
    font-size: var(--tcf-text-sm);
    letter-spacing: 0.025em;
    text-transform: uppercase;
    transition: var(--tcf-transition-fast);
}

.tcf-required {
    color: var(--tcf-color-primary, #239D60);
    margin-left: var(--tcf-space-xs);
    font-weight: 700;
    font-size: var(--tcf-text-lg);
}

.tcf-field-input {
    position: relative;
}

/* === MODERN INPUT STYLES === */
.tcf-input,
.tcf-textarea,
.tcf-select {
    width: 100%;
    padding: var(--tcf-space-md);
    border: 2px solid #e5e7eb;
    border-radius: 12px !important;
    font-size: var(--tcf-text-base);
    font-family: inherit;
    font-weight: 500;
    transition: all var(--tcf-transition-normal);
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(5px);
    box-sizing: border-box;
    position: relative;
    color: #1f2937 !important;
}

.tcf-input:focus,
.tcf-textarea:focus,
.tcf-select:focus {
    outline: none;
    border-color: var(--tcf-color-primary, #239D60);
    box-shadow: 
        0 0 0 3px var(--tcf-color-primary-alpha-20, rgba(35, 157, 96, 0.2)),
        var(--tcf-shadow-lg);
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-1px);
}

.tcf-input::placeholder,
.tcf-textarea::placeholder {
    color: #9ca3af !important;
    opacity: 1;
    font-weight: 400;
    transition: var(--tcf-transition-fast);
}

.tcf-input:focus::placeholder,
.tcf-textarea:focus::placeholder {
    opacity: 0.7;
    transform: translateX(4px);
}

.tcf-textarea {
    resize: vertical;
    min-height: 80px;
    line-height: 1.5;
}

/* === REQUIRED FIELD STYLING === */
.tcf-required-field .tcf-input,
.tcf-required-field .tcf-textarea,
.tcf-required-field .tcf-select {
    border-left: 4px solid var(--tcf-color-primary, #239D60);
    padding-left: calc(var(--tcf-space-md) - 2px);
}

.tcf-required-field .tcf-input:focus,
.tcf-required-field .tcf-textarea:focus,
.tcf-required-field .tcf-select:focus {
    border-left-color: var(--tcf-color-primary, #239D60);
}

/* === CHECKBOX AND RADIO STYLES === */
.tcf-checkbox-label,
.tcf-radio-label {
    display: flex;
    align-items: flex-start;
    gap: var(--tcf-space-sm);
    cursor: pointer;
    font-size: var(--tcf-text-base);
    color: #374151 !important;
    margin-bottom: var(--tcf-space-sm);
    padding: var(--tcf-space-sm);
    border-radius: 12px !important;
    transition: var(--tcf-transition-fast);
    font-weight: 500;
}

.tcf-checkbox-label:hover,
.tcf-radio-label:hover {
    background: var(--tcf-color-primary-alpha-10, rgba(35, 157, 96, 0.1));
    transform: translateX(4px);
}

.tcf-checkbox,
.tcf-radio {
    margin: 0;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 2px;
    cursor: pointer;
    accent-color: var(--tcf-color-primary, #239D60);
}

.tcf-radio-group {
    display: flex;
    flex-direction: column;
    gap: var(--tcf-space-sm);
    padding: var(--tcf-space-md);
    background: rgba(249, 250, 251, 0.8);
    border-radius: 12px !important;
    border: 1px solid #f3f4f6;
}

/* === MODERN FILE UPLOAD STYLES === */
.tcf-file-upload {
    position: relative;
}

.tcf-file-input {
    position: absolute;
    opacity: 0;
    width: 0.1px;
    height: 0.1px;
    overflow: hidden;
}

.tcf-file-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--tcf-space-sm);
    padding: var(--tcf-space-lg);
    border: 2px dashed #d1d5db;
    border-radius: 12px !important;
    background: linear-gradient(135deg, 
        rgba(249, 250, 251, 0.8) 0%, 
        rgba(243, 244, 246, 0.8) 100%
    );
    color: #6b7280;
    cursor: pointer;
    transition: all var(--tcf-transition-normal);
    text-align: center;
    min-height: 80px;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.tcf-file-label::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.4), 
        transparent
    );
    transition: var(--tcf-transition-slow);
}

.tcf-file-label:hover {
    border-color: var(--tcf-color-primary, #239D60);
    background: linear-gradient(135deg, 
        var(--tcf-color-primary-alpha-10, rgba(35, 157, 96, 0.1)) 0%, 
        var(--tcf-color-secondary-alpha-10, rgba(30, 126, 52, 0.1)) 100%
    );
    color: var(--tcf-color-primary, #239D60);
    transform: translateY(-4px);
    box-shadow: var(--tcf-shadow-lg);
}

.tcf-file-label:hover::before {
    left: 100%;
}

.tcf-file-label.tcf-dragover {
    border-color: var(--tcf-color-accent, #28a745);
    background: var(--tcf-color-accent-alpha-20, rgba(40, 167, 69, 0.2));
    color: var(--tcf-color-accent, #28a745);
    transform: scale(1.02);
}

.tcf-file-icon {
    font-size: 2.5rem;
    opacity: 0.8;
    margin-bottom: var(--tcf-space-sm);
}

.tcf-file-text {
    font-weight: 600;
    font-size: var(--tcf-text-lg);
}

.tcf-file-list {
    margin-top: var(--tcf-space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--tcf-space-sm);
}

.tcf-file-item {
    display: flex;
    align-items: center;
    gap: var(--tcf-space-md);
    padding: var(--tcf-space-lg);
    background: rgba(248, 250, 252, 0.8);
    border: 1px solid #e2e8f0;
    border-radius: 12px !important;
    transition: all var(--tcf-transition-fast);
    backdrop-filter: blur(5px);
}

.tcf-file-item:hover {
    background: rgba(241, 245, 249, 0.9);
    border-color: var(--tcf-color-primary);
    transform: translateX(4px);
    box-shadow: var(--tcf-shadow-md);
}

.tcf-file-name {
    flex: 1;
    font-weight: 600;
    color: #374151 !important;
    word-break: break-word;
}

.tcf-file-size {
    color: #6b7280;
    font-size: var(--tcf-text-sm);
    font-weight: 500;
    background: #f1f5f9;
    padding: var(--tcf-space-xs) var(--tcf-space-sm);
    border-radius: 8px !important;
}

.tcf-file-remove {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    border: 1px solid #fca5a5;
    color: #dc2626;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    transition: all var(--tcf-transition-fast);
    flex-shrink: 0;
    font-size: var(--tcf-text-sm);
}

.tcf-file-remove:hover {
    background: linear-gradient(135deg, #fecaca, #f87171);
    border-color: #ef4444;
    transform: scale(1.1) rotate(90deg);
    box-shadow: var(--tcf-shadow-md);
}

.tcf-file-restrictions {
    margin-top: var(--tcf-space-md);
    padding: var(--tcf-space-md);
    background: linear-gradient(135deg, 
        var(--tcf-color-info-alpha-10, rgba(23, 162, 184, 0.1)), 
        var(--tcf-color-primary-alpha-10, rgba(35, 157, 96, 0.1))
    );
    border: 1px solid var(--tcf-color-info-alpha-30, rgba(23, 162, 184, 0.3));
    border-radius: 12px !important;
    color: var(--tcf-color-info, #17a2b8);
}

.tcf-file-restrictions small {
    font-size: var(--tcf-text-sm);
    line-height: 1.6;
    display: block;
    font-weight: 500;
}

.tcf-file-restrictions strong {
    color: var(--tcf-color-info-dark, #117a8b);
    margin-bottom: var(--tcf-space-xs);
    display: block;
    font-weight: 700;
}

/* === FIELD DESCRIPTION === */
.tcf-field-description {
    font-size: var(--tcf-text-sm);
    color: #6b7280 !important;
    margin-top: var(--tcf-space-sm);
    line-height: 1.5;
    font-style: italic;
    padding-left: var(--tcf-space-sm);
    border-left: 2px solid #e5e7eb;
}

/* === PRIVACY POLICY CHECKBOX === */
.tcf-privacy-policy-field {
    margin: var(--tcf-space-lg) 0;
    padding: var(--tcf-space-md);
    background: linear-gradient(135deg, 
        rgba(249, 250, 251, 0.8) 0%, 
        rgba(243, 244, 246, 0.8) 100%
    );
    border: 1px solid #e5e7eb;
    border-radius: 12px !important;
    position: relative;
}

.tcf-privacy-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: var(--tcf-space-md);
    cursor: pointer;
    font-size: var(--tcf-text-sm);
    color: #374151 !important;
    line-height: 1.6;
    font-weight: 500;
    margin: 0;
}

.tcf-privacy-checkbox {
    margin: 0;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 2px;
    cursor: pointer;
    accent-color: var(--tcf-color-primary, #239D60);
}

.tcf-privacy-text {
    flex: 1;
}

.tcf-privacy-link {
    background: none;
    border: none;
    color: var(--tcf-color-primary, #239D60);
    text-decoration: underline;
    cursor: pointer;
    font-size: inherit;
    font-weight: 600;
    padding: 0;
    transition: var(--tcf-transition-fast);
}

.tcf-privacy-link:hover {
    color: var(--tcf-color-primary-dark, #1e7e34);
    text-decoration: none;
}

/* === PRIVACY POLICY MODAL === */
.tcf-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    animation: tcfModalFadeIn 0.3s ease-out;
}

@keyframes tcfModalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.tcf-modal-content {
    background: white;
    border-radius: 16px !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    position: relative;
    animation: tcfModalSlideIn 0.3s ease-out;
}

@keyframes tcfModalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tcf-modal-header {
    padding: var(--tcf-space-xl);
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, 
        var(--tcf-color-primary-alpha-10, rgba(35, 157, 96, 0.1)) 0%, 
        var(--tcf-color-secondary-alpha-10, rgba(30, 126, 52, 0.1)) 100%
    );
}

.tcf-modal-header h3 {
    margin: 0;
    color: #1f2937;
    font-size: var(--tcf-text-xl);
    font-weight: 700;
}

.tcf-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #6b7280;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--tcf-transition-fast);
}

.tcf-modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #374151;
}

.tcf-modal-body {
    padding: var(--tcf-space-xl);
    max-height: 60vh;
    overflow-y: auto;
    line-height: 1.7;
    color: #374151;
    font-size: var(--tcf-text-base);
}

.tcf-modal-body h1,
.tcf-modal-body h2,
.tcf-modal-body h3,
.tcf-modal-body h4,
.tcf-modal-body h5,
.tcf-modal-body h6 {
    color: #1f2937;
    margin-top: var(--tcf-space-lg);
    margin-bottom: var(--tcf-space-md);
}

.tcf-modal-body p {
    margin-bottom: var(--tcf-space-md);
}

.tcf-modal-body ul,
.tcf-modal-body ol {
    padding-left: var(--tcf-space-xl);
    margin-bottom: var(--tcf-space-md);
}

.tcf-modal-footer {
    padding: var(--tcf-space-xl);
    border-top: 1px solid #e5e7eb;
    text-align: right;
    background: #f9fafb;
}

.tcf-modal-close-btn {
    background: var(--tcf-color-primary, #239D60);
    color: white;
    border: none;
    padding: var(--tcf-space-md) var(--tcf-space-xl);
    border-radius: 12px !important;
    font-size: var(--tcf-text-base);
    font-weight: 600;
    cursor: pointer;
    transition: var(--tcf-transition-normal);
}

.tcf-modal-close-btn:hover {
    background: var(--tcf-color-primary-dark, #1e7e34);
    transform: translateY(-1px);
    box-shadow: var(--tcf-shadow-md);
}

/* === MOBILE MODAL STYLES === */
@media (max-width: 768px) {
    .tcf-modal-content {
        width: 95%;
        max-height: 90vh;
        border-radius: 12px !important;
    }
    
    .tcf-modal-header,
    .tcf-modal-body,
    .tcf-modal-footer {
        padding: var(--tcf-space-lg);
    }
    
    .tcf-modal-header h3 {
        font-size: var(--tcf-text-lg);
    }
    
    .tcf-modal-body {
        font-size: var(--tcf-text-sm);
        max-height: 60vh;
    }
}

/* === MODERN SUBMIT BUTTON === */
.tcf-form-submit {
    text-align: center;
    margin-top: var(--tcf-space-lg);
}

.tcf-submit-btn {
    background: linear-gradient(135deg, 
        var(--tcf-color-primary, #239D60) 0%, 
        var(--tcf-color-secondary, #1e7e34) 100%
    );
    color: white;
    border: none;
    padding: var(--tcf-space-md) var(--tcf-space-xl);
    border-radius: 12px !important;
    font-size: var(--tcf-text-base);
    font-weight: 700;
    cursor: pointer;
    transition: all var(--tcf-transition-normal);
    min-width: 180px;
    position: relative;
    box-shadow: var(--tcf-shadow-lg);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    overflow: hidden;
}

.tcf-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.2), 
        transparent
    );
    transition: var(--tcf-transition-slow);
}

.tcf-submit-btn:hover {
    background: linear-gradient(135deg, 
        var(--tcf-color-primary-dark, #1e7e34) 0%, 
        var(--tcf-color-secondary-dark, #155724) 100%
    );
    transform: translateY(-3px);
    box-shadow: var(--tcf-shadow-xl);
}

.tcf-submit-btn:hover::before {
    left: 100%;
}

.tcf-submit-btn:active {
    transform: translateY(-1px);
}

.tcf-submit-btn:disabled {
    background: linear-gradient(135deg, #d1d5db, #9ca3af);
    cursor: not-allowed;
    transform: none;
    box-shadow: var(--tcf-shadow-sm);
}

.tcf-submit-text,
.tcf-submit-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--tcf-space-sm);
}

/* === MODERN SPINNER === */
.tcf-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: tcf-spin 1s linear infinite;
}

@keyframes tcf-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* === MODERN MESSAGES === */
.tcf-form-messages {
    margin-top: var(--tcf-space-md);
}

.tcf-success-message {
    padding: var(--tcf-space-lg) var(--tcf-space-xl);
    background: linear-gradient(135deg, 
        var(--tcf-color-success-alpha-20, rgba(16, 185, 129, 0.2)), 
        var(--tcf-color-success-alpha-10, rgba(16, 185, 129, 0.1))
    );
    color: var(--tcf-color-success-dark, #047857);
    border: 1px solid var(--tcf-color-success-alpha-30, rgba(16, 185, 129, 0.3));
    border-radius: 12px !important;
    margin-bottom: var(--tcf-space-lg);
    display: flex;
    align-items: center;
    gap: var(--tcf-space-md);
    font-weight: 600;
    box-shadow: var(--tcf-shadow-md);
    animation: messageSlideIn 0.5s ease-out;
}

.tcf-success-message::before {
    content: '✓';
    font-weight: 700;
    font-size: var(--tcf-text-xl);
    color: var(--tcf-color-success, #10b981);
    background: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--tcf-shadow-sm);
}

.tcf-error-message {
    padding: var(--tcf-space-lg) var(--tcf-space-xl);
    background: linear-gradient(135deg, 
        var(--tcf-color-error-alpha-20, rgba(220, 53, 69, 0.2)), 
        var(--tcf-color-error-alpha-10, rgba(220, 53, 69, 0.1))
    );
    color: var(--tcf-color-error-dark, #991b1b);
    border: 1px solid var(--tcf-color-error-alpha-30, rgba(220, 53, 69, 0.3));
    border-radius: 12px !important;
    margin-bottom: var(--tcf-space-lg);
    display: flex;
    align-items: center;
    gap: var(--tcf-space-md);
    font-weight: 600;
    box-shadow: var(--tcf-shadow-md);
    animation: messageSlideIn 0.5s ease-out;
}

.tcf-error-message::before {
    content: '⚠';
    font-weight: 700;
    font-size: var(--tcf-text-xl);
    color: var(--tcf-color-error, #dc3545);
    background: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--tcf-shadow-sm);
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === FIELD ERRORS === */
.tcf-field-error {
    color: var(--tcf-color-error, #dc3545);
    font-size: var(--tcf-text-xs);
    margin-top: var(--tcf-space-xs);
    font-weight: 400;
    line-height: 1.4;
    padding-left: var(--tcf-space-sm);
    position: relative;
}

.tcf-field-error::before {
    content: '';
    position: absolute;
    left: 0;
    top: 2px;
    width: 3px;
    height: calc(100% - 4px);
    background: var(--tcf-color-error, #dc3545);
    border-radius: 2px;
}

@keyframes errorShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-2px); }
    75% { transform: translateX(2px); }
}

.tcf-form-field.tcf-field-error .tcf-input,
.tcf-form-field.tcf-field-error .tcf-textarea,
.tcf-form-field.tcf-field-error .tcf-select {
    border-color: var(--tcf-color-error, #dc3545);
    box-shadow: 0 0 0 3px var(--tcf-color-error-alpha-20, rgba(220, 53, 69, 0.2));
    animation: errorPulse 0.5s ease-in-out;
}

@keyframes errorPulse {
    0%, 100% { box-shadow: 0 0 0 3px var(--tcf-color-error-alpha-20, rgba(220, 53, 69, 0.2)); }
    50% { box-shadow: 0 0 0 6px var(--tcf-color-error-alpha-10, rgba(220, 53, 69, 0.1)); }
}

/* === SHORTCODE ERROR === */
.tcf-shortcode-error {
    padding: var(--tcf-space-lg) var(--tcf-space-xl);
    background: linear-gradient(135deg, 
        var(--tcf-color-warning-alpha-20, rgba(255, 193, 7, 0.2)), 
        var(--tcf-color-warning-alpha-10, rgba(255, 193, 7, 0.1))
    );
    border: 1px solid var(--tcf-color-warning-alpha-30, rgba(255, 193, 7, 0.3));
    border-radius: 12px !important;
    color: var(--tcf-color-warning-dark, #856404);
    font-size: var(--tcf-text-sm);
    margin: var(--tcf-space-lg) 0;
    font-weight: 600;
}

/* === FOCUS ENHANCEMENTS === */
.tcf-form-field:focus-within .tcf-field-label {
    color: var(--tcf-color-primary, #239D60);
    transform: translateY(-2px);
}

.tcf-input:focus,
.tcf-textarea:focus,
.tcf-select:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 768px) {
    .tcf-form-wrapper {
        margin: var(--tcf-space-md);
        padding: var(--tcf-space-md);
        border-radius: 16px !important;
    }
    
    .tcf-form-title {
        font-size: var(--tcf-text-lg);
    }
    
    .tcf-form-description {
        font-size: var(--tcf-text-sm);
    }
    
    .tcf-input,
    .tcf-textarea,
    .tcf-select {
        font-size: 16px; /* Prevent zoom on iOS */
        padding: var(--tcf-space-md);
        border-radius: 12px !important;
    }
    
    .tcf-submit-btn {
        width: 100%;
        padding: var(--tcf-space-md) var(--tcf-space-lg);
        font-size: var(--tcf-text-base);
        border-radius: 12px !important;
    }
    
    .tcf-checkbox-label,
    .tcf-radio-label {
        font-size: var(--tcf-text-base);
        border-radius: 12px !important;
    }
    
    .tcf-file-label {
        padding: var(--tcf-space-md);
        min-height: 60px;
        border-radius: 12px !important;
    }
    
    .tcf-file-icon {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .tcf-form-wrapper {
        margin: var(--tcf-space-sm);
        padding: var(--tcf-space-sm);
        border-radius: 16px !important;
    }
    
    .tcf-form-title {
        font-size: var(--tcf-text-base);
        margin-bottom: var(--tcf-space-xs);
    }
    
    .tcf-form-description {
        font-size: var(--tcf-text-sm);
        margin-bottom: var(--tcf-space-md);
    }
    
    .tcf-form-fields {
        gap: var(--tcf-space-sm);
    }
    
    .tcf-form-field {
        margin-bottom: 0;
    }
    
    .tcf-input,
    .tcf-textarea,
    .tcf-select {
        border-radius: 12px !important;
    }
    
    .tcf-file-label {
        flex-direction: column;
        gap: var(--tcf-space-xs);
        padding: var(--tcf-space-sm);
        min-height: 50px;
        border-radius: 12px !important;
    }
    
    .tcf-file-text {
        font-size: var(--tcf-text-sm);
    }
    
    .tcf-submit-btn {
        border-radius: 12px !important;
    }
}

/* === DARK MODE SUPPORT - DISABLED FOR NOW === */
/*
@media (prefers-color-scheme: dark) {
    .tcf-form-wrapper {
        background: rgba(30, 41, 59, 0.95);
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .tcf-form-title {
        color: #f1f5f9;
    }
    
    .tcf-form-description {
        color: #cbd5e1;
    }
    
    .tcf-field-label {
        color: #e2e8f0;
    }
    
    .tcf-input,
    .tcf-textarea,
    .tcf-select {
        background: rgba(30, 41, 59, 0.8);
        border-color: #475569;
        color: #f1f5f9;
    }
    
    .tcf-input::placeholder,
    .tcf-textarea::placeholder {
        color: #94a3b8;
    }
}
*/

/* === ACCESSIBILITY IMPROVEMENTS === */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.tcf-form-wrapper:focus-within {
    box-shadow: 0 0 0 2px var(--tcf-color-primary-alpha-30, rgba(35, 157, 96, 0.3)), var(--tcf-shadow-xl);
}

/* === HIGH CONTRAST MODE === */
@media (prefers-contrast: high) {
    .tcf-form-wrapper {
        border: 2px solid;
    }
    
    .tcf-input,
    .tcf-textarea,
    .tcf-select {
        border-width: 2px;
    }
    
    .tcf-submit-btn {
        border: 2px solid;
    }
} 