/**
 * Tech Repair Quick Order Form Styles
 */

/* Переменные стилей */
:root {
    --tech-repair-form-primary: #2271b1;
    --tech-repair-form-primary-dark: #135e96;
    --tech-repair-form-secondary: #3858e9;
    --tech-repair-form-success: #00a32a;
    --tech-repair-form-warning: #dba617;
    --tech-repair-form-danger: #d63638;
    --tech-repair-form-light: #f0f0f1;
    --tech-repair-form-dark: #1d2327;
    --tech-repair-form-gray: #f6f7f7;
    --tech-repair-form-border: #c3c4c7;
    --tech-repair-form-shadow: rgba(0, 0, 0, 0.1);
    --tech-repair-form-radius: 8px;
    --tech-repair-form-transition: all 0.2s ease;
}

/* Кнопка вызова формы */
.tech-repair-form-button:not(.elementor-element) {
    display: inline-block;
    background-color: var(--tech-repair-form-primary);
    color: #fff !important;
    padding: 12px 24px;
    border-radius: var(--tech-repair-form-radius);
    font-weight: 600;
    text-decoration: none;
    transition: var(--tech-repair-form-transition);
    border: none;
    cursor: pointer;
    font-size: 16px;
    line-height: 1.5;
    text-align: center;
    box-shadow: 0 2px 4px var(--tech-repair-form-shadow);
}

.tech-repair-form-button:hover:not(.elementor-element) {
    background-color: var(--tech-repair-form-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px var(--tech-repair-form-shadow);
    text-decoration: none;
}

.tech-repair-form-button:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px var(--tech-repair-form-shadow);
}

/* Модальное окно */
.tech-repair-form-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tech-repair-form-modal.active {
    display: block;
    opacity: 1;
}

/* Содержимое модального окна */
.tech-repair-form-modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 0;
    border-radius: var(--tech-repair-form-radius);
    box-shadow: 0 5px 15px var(--tech-repair-form-shadow);
    width: 90%;
    max-width: 600px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.tech-repair-form-modal.active .tech-repair-form-modal-content {
    transform: translateY(0);
}

/* Заголовок формы */
.tech-repair-form-header {
    background-color: var(--tech-repair-form-primary);
    color: #fff;
    padding: 20px;
    position: relative;
    text-align: center;
}

.tech-repair-form-header h2 {
    margin: 0 0 10px 0;
    font-size: 24px;
    font-weight: 600;
    color: #fff;
}

.tech-repair-form-header p {
    margin: 0;
    font-size: 16px;
    opacity: 0.9;
    color: #fff;
}

.tech-repair-form-close {
    position: absolute;
    top: 15px;
    right: 15px;
    color: #fff;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--tech-repair-form-transition);
    line-height: 1;
}

.tech-repair-form-close:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* Содержимое формы */
.tech-repair-quick-order-form {
    padding: 25px;
}

.tech-repair-form-row {
    margin-bottom: 20px;
}

.tech-repair-form-group {
    margin-bottom: 5px;
}

.tech-repair-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--tech-repair-form-dark);
}

.tech-repair-form-group .required {
    color: var(--tech-repair-form-danger);
}

.tech-repair-form-group input[type="text"],
.tech-repair-form-group input[type="email"],
.tech-repair-form-group input[type="tel"],
.tech-repair-form-group textarea,
.tech-repair-form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--tech-repair-form-border);
    border-radius: 4px;
    font-size: 16px;
    transition: var(--tech-repair-form-transition);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) inset;
}

.tech-repair-form-group input[type="text"]:focus,
.tech-repair-form-group input[type="email"]:focus,
.tech-repair-form-group input[type="tel"]:focus,
.tech-repair-form-group textarea:focus,
.tech-repair-form-group select:focus {
    border-color: var(--tech-repair-form-primary);
    outline: none;
    box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.2);
}

.tech-repair-form-group textarea {
    min-height: 100px;
    resize: vertical;
}

/* Кнопки формы */
.tech-repair-form-submit {
    margin-top: 10px;
    text-align: center;
}

.tech-repair-form-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
    display: none;
}

.tech-repair-form-message.success {
    display: block;
    background-color: rgba(0, 163, 42, 0.1);
    border: 1px solid var(--tech-repair-form-success);
    color: var(--tech-repair-form-success);
}

.tech-repair-form-message.error {
    display: block;
    background-color: rgba(214, 54, 56, 0.1);
    border: 1px solid var(--tech-repair-form-danger);
    color: var(--tech-repair-form-danger);
}

.tech-repair-submit-button {
    background-color: var(--tech-repair-form-success);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--tech-repair-form-transition);
    font-size: 16px;
}



.tech-repair-form-cancel {
    background-color: #f0f0f1;
    color: #2c3338;
    border: 1px solid var(--tech-repair-form-border);
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--tech-repair-form-transition);
    margin-right: 10px;
    font-size: 16px;
}

.tech-repair-form-cancel:hover {
    background-color: #e5e5e5;
}

/* Сообщения об ошибках */
.tech-repair-form-error {
    color: var(--tech-repair-form-danger);
    font-size: 14px;
    margin-top: 5px;
}

/* Сообщение об успешной отправке */
.tech-repair-form-success-message {
    background-color: rgba(0, 163, 42, 0.1);
    border: 1px solid var(--tech-repair-form-success);
    color: var(--tech-repair-form-success);
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    display: none;
}

.tech-repair-form-success-message.active {
    display: block;
}

/* Индикатор загрузки */
.tech-repair-form-loading {
    display: none;
    text-align: center;
    padding: 20px;
}

.tech-repair-form-loading.active {
    display: block;
}

.tech-repair-form-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: var(--tech-repair-form-primary);
    animation: tech-repair-spin 1s ease-in-out infinite;
}

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

/* Адаптивность */
@media screen and (max-width: 600px) {
    .tech-repair-form-popup {
        width: 95%;
    }
    
    .tech-repair-form-footer {
        flex-direction: column;
    }
    
    .tech-repair-form-cancel,
    .tech-repair-form-submit {
        width: 100%;
        margin-right: 0;
        text-align: center;
    }
    
    .tech-repair-form-cancel {
        margin-bottom: 10px;
    }
}
