/**
 * Request Form Modal Styles
 * 
 * @package Astra
 * @since 1.0.0
 */

/* Request Form Modal Styles */
.request-form-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    justify-content: end;
}

.request-form-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.request-form-container {
    position: relative;
    background: #ffffff;
    padding: 0;
    max-width: 600px;
    width: 100%;
    max-height: 100vh;
    overflow-y: auto;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-radius: 0;
}

.request-form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 64px 72px 0 72px;
    margin-bottom: 24px;
}

.request-form-title {
    font-family: Inter, sans-serif;
    font-size: 24px;
    font-weight: 600;
    line-height: 32px;
    color: #000000;
    margin: 0;
}

.request-form-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    color: #000000;
    transition: all 0.2s ease;
    box-shadow: none !important;
}

.request-form-close:hover {
    background: #f3f4f6;
    color: #000000;
}

.request-form {
    padding: 0 72px 64px 72px;
}

.request-form-row {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.request-form-row .request-form-field {
    flex: 1;
}

.request-form-field {
    margin-bottom: 24px;
}

.request-form-field label {
    display: block;
    font-family: Inter, sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

.request-form-field input,
.request-form-field textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #949494;
    border-radius: 10px !important;
    font-family: Inter, sans-serif;
    font-size: 16px;
    color: #000000;
    background: #F8F8F8 !important;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.request-form-field input:focus,
.request-form-field textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.request-form-field input::placeholder,
.request-form-field textarea::placeholder {
    color: #9ca3af;
}

.request-form-field textarea {
    resize: vertical;
    min-height: 100px;
}

.request-form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 40px;
}

.request-form-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 0;
    flex-shrink: 0;
    margin-top: 2px;
    border: 1px solid #949494;
    border-radius: 2px;
    transition: border-color 0.2s ease;
}

.request-form-checkbox input[type="checkbox"]:hover {
    border-color: #000000;
}

.request-form-checkbox input[type="checkbox"]:checked {
    background-color: #000000;
    border-color: #000000;
}

.request-form-checkbox label {
    font-family: Inter, sans-serif;
    font-size: 14px;
    color: #374151;
    line-height: 1.5;
    margin: 0;
}

.privacy-link {
    color: #000000;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.privacy-link:hover {
    color: #3b82f6;
}

.request-form-submit {
    margin-top: 0;
    padding-bottom: 64px;
}

.request-form-button {
    margin-top: 0;
    width: 100%;
    background: #000000;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 16px 24px;
    font-family: Inter, sans-serif;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.request-form-button:hover {
    background: #333333;
}

.request-form-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.2);
}

.request-form-button:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

/* Request Button Styles */
.request-button-container {
    text-align: center;
    margin: 20px 0;
}

.request-button {
    background: #000000;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 16px 32px;
    font-family: Inter, sans-serif;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
    text-transform: none;
}

.request-button:hover {
    background: #333333;
}

.request-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.2);
}

/* Mobile responsiveness */
@media (max-width: 640px) {
    .request-form-modal {
        max-width: 360px;
    }
    
    .request-form-container {
        width: 100%;
        max-width: 360px;
        margin: 0;
        max-height: calc(100vh - 40px);
    }

    .request-form-button{
        font-size: 14px;
        font-weight: 500;
        line-height: 1.5;
    }
    
    .request-form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .request-form-header {
        padding: 44px 24px 0 24px;
    }
    
    .request-form {
        padding: 0 24px 20px 24px;
    }
    
    .request-form-submit {
        padding-bottom: 20px;
    }
}
