/* Telegram Video Form Styles */

.telegram-form-wrapper {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
}

.telegram-form-container {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07), 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.telegram-form-header {
    background: linear-gradient(135deg, #0088cc 0%, #229ed9 100%);
    padding: 40px 30px;
    text-align: center;
    color: white;
}

.telegram-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 16px;
    opacity: 0.95;
}

.telegram-form-title {
    margin: 0 0 8px 0;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.telegram-form-subtitle {
    margin: 0;
    font-size: 15px;
    opacity: 0.9;
    font-weight: 400;
}

.telegram-form {
    padding: 40px 30px;
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    letter-spacing: 0.2px;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    border: 2px solid #e0e6ed;
    border-radius: 10px;
    transition: all 0.3s ease;
    background: #f8f9fa;
    color: #2c3e50;
    box-sizing: border-box;
    font-family: inherit;
}

.form-input:focus {
    outline: none;
    border-color: #0088cc;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(0, 136, 204, 0.1);
}

.form-input::placeholder {
    color: #95a5a6;
}

/* File Upload Styling */
.file-upload-wrapper {
    position: relative;
}

.file-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.file-upload-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    border: 2px dashed #d0d7de;
    border-radius: 10px;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #5a6c7d;
    font-size: 15px;
    font-weight: 500;
}

.file-upload-label:hover {
    border-color: #0088cc;
    background: #e8f4f8;
    color: #0088cc;
}

.file-input:focus + .file-upload-label {
    border-color: #0088cc;
    box-shadow: 0 0 0 4px rgba(0, 136, 204, 0.1);
}

.upload-icon {
    width: 24px;
    height: 24px;
    color: currentColor;
}

.file-name {
    display: none;
    font-weight: 600;
    color: #0088cc;
}

.file-input:valid + .file-upload-label .upload-text {
    display: none;
}

.file-input:valid + .file-upload-label .file-name {
    display: inline;
}

.file-input:valid + .file-upload-label {
    border-color: #27ae60;
    background: #e8f8f0;
    color: #27ae60;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    color: white;
    background: linear-gradient(135deg, #0088cc 0%, #229ed9 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-family: inherit;
    letter-spacing: 0.3px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 136, 204, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-left: 10px;
}

.submit-btn.loading .btn-text {
    opacity: 0.7;
}

.submit-btn.loading .btn-loader {
    display: inline-block;
}

.progress-bar {
    position: absolute;
    inset: 0;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.15);
    display: none;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    font-weight: 600;
}

.progress-bar-fill {
    position: absolute;
    inset: 0;
    width: 0%;
    background: rgba(255, 255, 255, 0.35);
    transition: width 0.1s linear;
}

.progress-value {
    position: relative;
    z-index: 1;
}

.submit-btn.uploading .progress-bar {
    display: flex;
}

.submit-btn.uploading .btn-text,
.submit-btn.uploading .btn-loader {
    opacity: 0;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Response Messages */
.response-message {
    margin-top: 20px;
    padding: 16px 20px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    text-align: center;
    display: none;
    animation: slideIn 0.3s ease;
}

.response-message.show {
    display: block;
}

.response-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.response-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 640px) {
    .telegram-form-wrapper {
        padding: 10px;
    }
    
    .telegram-form-header {
        padding: 30px 20px;
    }
    
    .telegram-form-title {
        font-size: 24px;
    }
    
    .telegram-form {
        padding: 30px 20px;
    }
    
    .form-input,
    .submit-btn {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}