/**
 * Post Buying Request Page Styles
 * Styles for the post buying request form page
 */

/* Override Elementor styles */
.post-buying-request-page {
    min-height: 100vh;
    background: #ffffff;
    padding: 0;
}

.post-buying-request-page .elementor-container,
.post-buying-request-page .elementor-row,
.post-buying-request-page .elementor-column,
.post-buying-request-page .elementor-section {
    max-width: 100%;
    width: 100%;
    padding: 0;
}

/* ============================================
   BANNER HEADER
   ============================================ */
.post-buying-request-banner {
    background: #108d52;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 227px;
    padding: 0;
}

.banner-title {
    font-weight: 700;
    font-size: 48px;
    line-height: 18px;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0;
    margin: 0;
    white-space: nowrap;
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.post-buying-request-content {
    padding: 60px 96px;
    max-width: 1320px;
    margin: 0 auto;
}

.post-buying-request-wrapper {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

/* ============================================
   FORM CONTAINER
   ============================================ */
.post-buying-request-form-container {
    box-sizing: border-box;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0px 4px 45px 10px rgba(0, 0, 0, 0.1);
    padding: 20px 16px;
}

.form-header {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
}

.form-header-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.form-title {
    font-weight: 900;
    font-size: 18px;
    line-height: 27px;
    color: #108d52;
    margin: 0;
}

.form-description {
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #344054;
    margin: 0 0 16px 0;
    padding-top: 7px;
}

/* ============================================
   FORM
   ============================================ */
.post-buying-request-form {
    width: 100%;
}

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

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

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

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

.form-group {
    position: relative;
    width: 100%;
}

.form-label {
    display: block;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #344054;
    margin-bottom: 8px;
}

.form-label .required {
    color: #f04438;
    margin-left: 2px;
}

/* ============================================
   FORM INPUTS
   ============================================ */
.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #108d52;
    border-radius: 8px;
    font-weight: 400;
    font-size: 12px;
    line-height: normal;
    color: rgba(0, 0, 0, 0.87);
    background: #ffffff;
    transition: all 0.3s ease;
    box-sizing: border-box;
    min-height: 40px;
    font-family: inherit;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: rgba(0, 0, 0, 0.42);
    opacity: 1;
    font-size: 12px;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #108d52;
    box-shadow: 0 0 0 3px rgba(16, 141, 82, 0.1);
}

.form-input.error,
.form-select.error,
.form-textarea.error {
    border-color: #f04438;
    box-shadow: 0 0 0 3px rgba(240, 68, 56, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 104px;
    line-height: 17.25px;
}

/* ============================================
   SELECT WRAPPER
   ============================================ */
.select-wrapper {
    position: relative;
}

.select-wrapper .form-select {
    appearance: none;
    padding-right: 36px;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='4' viewBox='0 0 8 4' fill='none'%3E%3Cpath d='M3.99989 3.82C3.73323 3.82 3.49323 3.71333 3.27989 3.5L0.639893 0.86L1.35989 0.18L3.99989 2.82L6.63989 0.18L7.35989 0.86L4.71989 3.5C4.50656 3.71333 4.26656 3.82 3.99989 3.82Z' fill='%23667085'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px 12px;
}

.select-wrapper .form-select option {
    color: rgba(0, 0, 0, 0.87);
    background: #ffffff;
}

/* Hide the SVG arrow elements since we're using background-image */
.select-arrow {
    display: none;
}

/* ============================================
   FORM GROUP COMPOSITE (Input + Select)
   ============================================ */
.form-group-composite {
    display: flex;
    align-items: stretch;
    border: 1px solid #108d52;
    border-radius: 8px;
    background: #ffffff;
    overflow: hidden;
    width: 100%;
}

.form-group-composite .form-input-inline {
    border: none;
    border-radius: 0;
    flex: 1;
    padding: 10px 14px;
    min-width: 0;
}

.form-group-composite .select-wrapper.select-inline {
    border: none;
    border-radius: 0;
    min-width: 80px;
    flex-shrink: 0;
}

.form-group-composite .select-wrapper.select-inline .form-select {
    border: none;
    border-radius: 0;
    padding: 10px 30px 10px 14px;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='4' viewBox='0 0 8 4' fill='none'%3E%3Cpath d='M3.99989 3.82C3.73323 3.82 3.49323 3.71333 3.27989 3.5L0.639893 0.86L1.35989 0.18L3.99989 2.82L6.63989 0.18L7.35989 0.86L4.71989 3.5C4.50656 3.71333 4.26656 3.82 3.99989 3.82Z' fill='%23667085'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px 12px;
}

/* ============================================
   UPLOAD AREA
   ============================================ */
.upload-area {
    border: 2px dashed #d5d5d5;
    border-radius: 8px;
    padding: 10px;
    display: flex;
    gap: 8px;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.upload-area:hover {
    border-color: #108d52;
    background: rgba(16, 141, 82, 0.05);
}

.upload-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.upload-text {
    flex: 1;
}

.upload-text p {
    font-weight: 400;
    font-size: 12px;
    line-height: 18px;
    color: #667085;
    margin: 0;
}

.upload-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

/* ============================================
   OPTIONS SECTION
   ============================================ */
.form-options-section {
    margin-top: 8px;
    padding-top: 8px;
}

.options-title {
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    color: rgba(0, 0, 0, 0.87);
    margin: 0 0 8px 0;
}

.option-item {
    margin-bottom: 8px;
}

.option-item:last-child {
    margin-bottom: 0;
}

.option-label {
    display: block;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    color: #344054;
    margin-bottom: 8px;
}

.option-description {
    font-weight: 400;
    font-size: 12px;
    line-height: 18px;
    color: #667085;
    margin: 0 0 8px 0;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 2px;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.radio-option:hover {
    background: rgba(16, 141, 82, 0.05);
}

.radio-option input[type="radio"] {
    width: 14px;
    height: 14px;
    margin: 0;
    cursor: pointer;
    accent-color: #108d52;
}

.radio-label {
    font-weight: 400;
    font-size: 12px;
    line-height: 18px;
    color: rgba(0, 0, 0, 0.87);
}

/* ============================================
   SUBMIT BUTTON
   ============================================ */
.form-actions {
    margin-top: 8px;
    padding-top: 8px;
}

.btn-submit {
    background: #008934;
    border: none;
    border-radius: 8px;
    padding: 6px 13px 7.5px;
    font-weight: 500;
    font-size: 14px;
    line-height: 24.5px;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    min-width: 64px;
}

.btn-submit:hover {
    background: #007529;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 137, 52, 0.3);
}

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

.btn-submit:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

/* ============================================
   SIDEBAR
   ============================================ */
.post-buying-request-sidebar {
    flex: 0 0 416px;
    max-width: 416px;
}

.sidebar-content {
    border: 1px solid #a3ce4d;
    border-radius: 8px;
    background: #ffffff;
    padding: 16px;
    position: sticky;
    top: 0;
}

.sidebar-header {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 7px;
}

.sidebar-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.sidebar-title {
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    color: #108d52;
    margin: 0;
}

.sidebar-description {
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #344054;
    margin: 0 0 16px 0;
}

.sidebar-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.step-item {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.step-number {
    background: #eeeeee;
    border-radius: 10px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 400;
    font-size: 12px;
    line-height: 18px;
    color: #1d2939;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.step-title {
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    color: #344054;
    margin: 0;
}

.step-description {
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #475467;
    margin: 0;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1400px) {
    .post-buying-request-content {
        padding: 60px 40px;
    }
    
    .post-buying-request-stats {
        padding: 40px;
    }
}

@media (max-width: 1200px) {
    .post-buying-request-wrapper {
        flex-direction: column-reverse;
    }
    
    .post-buying-request-form-container {
        flex: 1;
        max-width: 100%;
        width: 100%;
    }
    
    .post-buying-request-sidebar {
        flex: 1;
        max-width: 100%;
        width: 100%;
    }
    
    .sidebar-content {
        position: relative;
    }
}

@media (max-width: 992px) {
    .banner-title {
        font-size: 36px;
    }
    
    .post-buying-request-content {
        padding: 40px 20px;
    }
    
    .post-buying-request-form-container {
        flex: 1;
        max-width: 100%;
    }
    
    .form-row-4col {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    
    .form-row-2col {
        gap: 12px;
    }
    
    /* Adjust composite field for tablets */
    .form-group-composite .select-wrapper.select-inline {
        min-width: 100px;
    }
}

@media (max-width: 768px) {
    .post-buying-request-banner {
        height: 180px;
        padding: 0 20px;
    }
    
    .banner-title {
        font-size: 28px;
        line-height: 32px;
    }
    
    .post-buying-request-content {
        padding: 30px 16px;
    }
    
    .post-buying-request-wrapper {
        gap: 24px;
    }
    
    .post-buying-request-form-container {
        padding: 16px;
    }
    
    /* Keep 2 columns on mobile */
    .form-row-2col {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    
    /* 4 columns become 2 on mobile */
    .form-row-4col {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    
    /* Keep composite fields horizontal on mobile */
    .form-group-composite .select-wrapper.select-inline {
        min-width: 80px;
        max-width: 110px;
    }
    
    /* Form elements spacing */
    .form-row {
        margin-bottom: 16px;
    }
    
    .form-label {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .post-buying-request-banner {
        height: 150px;
    }
    
    .banner-title {
        font-size: 24px;
        line-height: 28px;
    }
    
    .post-buying-request-content {
        padding: 20px 12px;
    }
    
    .post-buying-request-form-container {
        padding: 12px;
    }
    
    .form-title {
        font-size: 16px;
        line-height: 24px;
    }
    
    .form-description {
        font-size: 13px;
        line-height: 18px;
    }
    
    .form-input,
    .form-select,
    .form-textarea {
        font-size: 11px;
        padding: 8px 12px;
    }
    
    .form-group-composite .form-input-inline,
    .form-group-composite .select-wrapper.select-inline .form-select {
        padding: 8px 12px;
        font-size: 11px;
    }
    
    .form-group-composite .select-wrapper.select-inline .form-select {
        padding-right: 28px;
    }
    
    .btn-submit {
        width: 100%;
        padding: 10px 16px;
    }
    
    .sidebar-title {
        font-size: 15px;
    }
    
    .sidebar-description {
        font-size: 13px;
    }
    
    .step-title {
        font-size: 13px;
    }
    
    .step-description {
        font-size: 13px;
    }
}
