/* Копируем базовые стили из item */
@import url('../item/style.css');

/* Дополнительные стили для формы */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    color: #c9d1d9;
    font-weight: 500;
    font-size: 0.95em;
}

.required {
    color: #f85149;
}

.form-group input,
.form-group select {
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 6px;
    padding: 10px 12px;
    color: #c9d1d9;
    font-size: 1em;
    transition: all 0.2s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #58a6ff;
    box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.1);
}

.form-group input::placeholder {
    color: #6e7681;
}

/* Фото паспорта */
.passport-photos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.photo-upload-item input[type="file"] {
    display: none;
}

.photo-upload-label {
    display: block;
    cursor: pointer;
}

.photo-preview {
    background: linear-gradient(135deg, #161b22 0%, #1c2128 100%);
    border: 2px dashed #30363d;
    border-radius: 8px;
    padding: 20px;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}

.photo-preview:hover {
    border-color: #58a6ff;
    background: linear-gradient(135deg, #1c2128 0%, #22272e 100%);
}

.photo-preview.has-image {
    border-style: solid;
    border-color: #238636;
    padding: 0;
}

.photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.upload-icon {
    font-size: 3em;
}

.upload-hint {
    font-size: 0.85em;
    color: #6e7681;
    text-align: center;
}

/* Кнопки действий */
.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding-top: 20px;
}

.cancel-btn {
    background: #21262d;
    border: 1px solid #30363d;
    color: #c9d1d9;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.cancel-btn:hover {
    background: #30363d;
}

.submit-btn {
    background: linear-gradient(135deg, #238636 0%, #2ea043 100%);
    border: none;
    color: white;
    padding: 12px 32px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1.05em;
    cursor: pointer;
    transition: all 0.2s;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(46, 160, 67, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(1, 4, 9, 0.85);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease-out;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: linear-gradient(135deg, #161b22 0%, #1c2128 100%);
    border: 1px solid #30363d;
    border-radius: 12px;
    max-width: 650px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease-out;
}

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

.modal-header {
    padding: 24px 30px;
    border-bottom: 1px solid #30363d;
}

.modal-header h2 {
    margin: 0;
    color: #c9d1d9;
    font-size: 1.4em;
}

.modal-body {
    padding: 30px;
    color: #c9d1d9;
}

.privacy-text {
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
    line-height: 1.6;
}

.privacy-text ul {
    margin: 10px 0;
    padding-left: 25px;
}

.privacy-text li {
    margin: 8px 0;
    color: #8b949e;
}

.privacy-text p {
    color: #8b949e;
    margin: 0;
}

.modal-footer {
    padding: 20px 30px;
    border-top: 1px solid #30363d;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.modal-btn {
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-size: 1em;
}

.modal-btn-secondary {
    background: #21262d;
    border: 1px solid #30363d;
    color: #c9d1d9;
}

.modal-btn-secondary:hover {
    background: #30363d;
}

.modal-btn-primary {
    background: linear-gradient(135deg, #238636 0%, #2ea043 100%);
    color: white;
}

.modal-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 160, 67, 0.3);
}

.modal-btn-primary:active {
    transform: translateY(0);
}
