/* Respond Page Styles - Tochka Bank inspired design */

/* Main Container for Respond Page */
.main-container-respond {
    max-width: 1400px;
    width: 1400px;
    margin: 0 auto;
    padding: 24px 48px;
    flex: 1;
    background-color: transparent;
    box-sizing: border-box;
}

@media (max-width: 1440px) {
    .main-container-respond {
        width: 100%;
        max-width: 1400px;
    }
}

/* Back Link Button */
.back-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: #F5F5F7;
    color: #1D1D1F;
    text-decoration: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    transition: background-color 0.2s;
    margin-bottom: 24px;
}

.back-link-btn:hover {
    background-color: #E5E5E7;
}

/* Content Area for Respond Page */
.content-area-respond {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
    max-width: 100%;
}

/* Application Info Card */
.application-info-card {
    background-color: #FFFFFF;
    border: 1px solid #E5E5E7;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.card-section-header {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #F5F5F7;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    color: #1D1D1F;
    margin: 0;
}

.application-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.detail-label {
    font-size: 13px;
    color: #86868B;
    font-weight: 500;
}

.detail-value {
    font-size: 15px;
    color: #1D1D1F;
    font-weight: 400;
}

.application-description-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #F5F5F7;
}

.application-description-text {
    font-size: 15px;
    color: #424245;
    line-height: 1.5;
    margin-top: 8px;
    margin-bottom: 0;
}

/* Form Card */
.form-card {
    background-color: #FFFFFF;
    border: 1px solid #E5E5E7;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1D1D1F;
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #D2D2D7;
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    color: #1D1D1F;
    background-color: #FFFFFF;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: #007AFF;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.form-input::placeholder {
    color: #86868B;
}

.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #D2D2D7;
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    color: #1D1D1F;
    background-color: #FFFFFF;
    resize: vertical;
    min-height: 140px;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.form-textarea:focus {
    outline: none;
    border-color: #007AFF;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.form-textarea::placeholder {
    color: #86868B;
}

.message-prefix {
    background-color: #F5F5F7;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 12px;
    font-size: 14px;
    color: #424245;
    border-left: 3px solid #007AFF;
}

/* File Upload */
.file-upload-container {
    position: relative;
}

.file-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.file-upload-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    border: 2px dashed #D2D2D7;
    border-radius: 10px;
    background-color: #FFFFFF;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.file-upload-label:hover {
    border-color: #007AFF;
    background-color: #F5F5F7;
}

.file-icon {
    font-size: 18px;
}

.file-text {
    font-size: 15px;
    color: #424245;
}

.file-info {
    margin-top: 8px;
    font-size: 13px;
    color: #86868B;
}

/* Privacy Toggle */
.privacy-group {
    padding: 20px;
    background-color: #F5F5F7;
    border-radius: 10px;
    border: 1px solid #E5E5E7;
}

.privacy-toggle-container {
    display: flex;
    align-items: center;
    gap: 16px;
}

.privacy-toggle-label {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    font-size: 14px;
    color: #1D1D1F;
    line-height: 1.5;
    cursor: pointer;
}

.toggle-text {
    flex: 1;
}

/* iOS-style Toggle Switch */
.ios-toggle-wrapper {
    position: relative;
    display: inline-block;
    flex-shrink: 0;
}

.ios-toggle {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.ios-toggle-slider {
    position: relative;
    display: inline-block;
    width: 51px;
    height: 31px;
    background-color: #E5E5E7;
    border-radius: 31px;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.ios-toggle-slider::before {
    content: "";
    position: absolute;
    height: 27px;
    width: 27px;
    left: 2px;
    top: 2px;
    background-color: #FFFFFF;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.ios-toggle:checked + .ios-toggle-slider {
    background-color: #34C759;
}

.ios-toggle:checked + .ios-toggle-slider::before {
    transform: translateX(20px);
}

.ios-toggle:focus + .ios-toggle-slider {
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 199, 89, 0.2);
}

.privacy-link {
    color: #007AFF;
    text-decoration: none;
}

.privacy-link:hover {
    text-decoration: underline;
}

/* Form Actions */
.form-actions {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #F5F5F7;
}

.submit-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    background-color: #007AFF;
    color: #FFFFFF;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.submit-btn:hover:not(:disabled) {
    background-color: #0056CC;
}

.submit-btn:disabled {
    background-color: #D2D2D7;
    color: #86868B;
    cursor: not-allowed;
    opacity: 0.5;
}

.btn-icon {
    font-size: 18px;
}

/* Alerts */
.alert {
    padding: 16px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    border: 1px solid;
}

.alert-success {
    background-color: #E8F5E9;
    color: #2E7D32;
    border-color: #C8E6C9;
}

.alert-error {
    background-color: #FFEBEE;
    color: #C62828;
    border-color: #FFCDD2;
}

/* Responsive */
@media (max-width: 768px) {
    .main-container-respond {
        width: 100%;
        padding: 16px;
    }
    
    .content-area-respond {
        padding: 0 16px;
    }
    
    .form-card {
        padding: 24px 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .application-details-grid {
        grid-template-columns: 1fr;
    }
    
    .header-right {
        display: none;
    }
    
    .back-link-btn {
        display: none;
    }
}

