/* =========================================
   CUSTOM_SOLUTIONS.CSS
   Specific styles for the Custom Solutions Request page
========================================= */

/* --- Main Container Overrides --- */
/* Adjust main padding to account for fixed navbar */
main {
    padding: 120px 20px 60px;
    min-height: 100vh; /* Ensures footer stays at bottom on short pages */
    display: flex;
    align-items: center; /* Vertically centers form if page is tall enough */
    justify-content: center;
}

/* --- Form Wrapper --- */
.form-wrapper {
    width: 100%;
    max-width: 800px;
    background-color: rgba(13, 27, 42, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 50px 60px;
    border-radius: 20px;
    border: 1px solid rgba(0, 214, 91, 0.15);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.8s ease-out;
}

/* --- Form Header --- */
.form-header {
    text-align: center;
    margin-bottom: 40px;
}

.form-header h1 {
    font-size: 2.8rem; /* Slightly smaller than demo page to fit longer title */
    font-weight: 700;
    color: #00d65b;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.form-header p {
    font-size: 1.15rem;
    color: #c0c0d0;
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.6;
}

.required-notice {
    text-align: right;
    font-size: 0.9rem;
    color: #a0a0b0;
    margin-bottom: 25px;
    font-style: italic;
}

/* --- Form Groups & Inputs --- */
.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-size: 1rem;
    font-weight: 500;
    color: #e0e0e0;
}

.form-group label span {
    color: #00d65b;
    margin-left: 4px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 15px;
    background-color: rgba(16, 29, 53, 0.8);
    border: 2px solid rgba(42, 58, 94, 0.5);
    border-radius: 10px;
    color: #f0f0f0;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit; /* Ensures textarea uses same font */
}

.form-textarea {
    min-height: 150px;
    resize: vertical; /* Allows user to resize vertically only */
    line-height: 1.5;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #7a8aa3;
}

/* Custom Select Arrow */
.form-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2300d65b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.2em;
    padding-right: 3rem;
}

.form-select option {
    background-color: #101d35;
    color: #f0f0f0;
    padding: 10px;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #00d65b;
    box-shadow: 0 0 0 4px rgba(0, 214, 91, 0.1);
    background-color: rgba(16, 29, 53, 1);
}

/* --- Radio Groups --- */
.radio-group {
    display: flex;
    gap: 30px;
    margin-top: 12px;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 1rem;
    color: #d0d0e0;
    transition: color 0.3s;
}

.radio-label:hover {
    color: #fff;
}

.radio-label input {
    display: none;
}

.radio-custom {
    width: 22px;
    height: 22px;
    border: 2px solid #4ddcff;
    border-radius: 50%;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
}

.radio-custom::after {
    content: '';
    width: 12px;
    height: 12px;
    background-color: #00d65b;
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.radio-label input:checked + .radio-custom {
    border-color: #00d65b;
    box-shadow: 0 0 10px rgba(0, 214, 91, 0.2);
}

.radio-label input:checked + .radio-custom::after {
    transform: scale(1);
}

/* --- Checkbox --- */
.checkbox-label {
    display: flex;
    align-items: flex-start;
    font-size: 0.95rem;
    color: #b0b0c0;
    cursor: pointer;
    line-height: 1.5;
}

.checkbox-label input {
    display: none;
}

.checkbox-custom {
    width: 22px;
    height: 22px;
    border: 2px solid #4ddcff;
    border-radius: 6px;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
    margin-top: 2px;
}

.checkbox-custom svg {
    width: 16px;
    height: 16px;
    stroke: #0d1b2a;
    stroke-width: 3;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    transform: scale(0);
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.checkbox-label input:checked + .checkbox-custom {
    background-color: #00d65b;
    border-color: #00d65b;
    box-shadow: 0 0 10px rgba(0, 214, 91, 0.2);
}

.checkbox-label input:checked + .checkbox-custom svg {
    transform: scale(1);
}

/* --- Submit Button --- */
.submit-btn {
    width: 100%;
    padding: 18px;
    margin-top: 30px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #00d65b 0%, #00b84e 100%);
    color: #050510;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px -5px rgba(0, 214, 91, 0.4);
    filter: brightness(1.1);
}

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

/* --- Animations --- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .form-wrapper {
        padding: 40px 30px;
    }

    .form-header h1 {
        font-size: 2.2rem;
    }

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

@media (max-width: 576px) {
    main {
        padding: 100px 15px 40px;
    }

    .form-wrapper {
        padding: 30px 20px;
    }

    .form-header h1 {
        font-size: 1.8rem;
    }

    .form-header p {
        font-size: 1rem;
    }
}