/* Project Inquiry Form Styles - Advanced Theme */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.project-inquiry-section {
    position: relative;
    padding: 50px 0px 100px;
    color: #fff;
    overflow: hidden;
}

/* Animated background elements */


.inquiry-container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
}

.inquiry-content {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 50px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
    animation: fadeInUp 0.8s ease-out;
}

.inquiry-content h2 {
    font-size: 40px;
    margin-bottom: 12px;
    text-align: center;
    font-weight: 400;
    letter-spacing: -0.5px;
    /* background: linear-gradient(135deg, #fff 0%, #e0e0e0 100%); */
    -webkit-background-clip: text;
    /* -webkit-text-fill-color: transparent; */
    /* background-clip: text; */
    animation: slideInLeft 0.6s ease-out 0.1s both;
}

::placeholder {
    color: #000000c4 !important;
}

.inquiry-content>p {
    text-align: center;
    font-size: 15px;
    margin-bottom: 45px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.inquiry-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    animation: fadeInUp 0.6s ease-out both;
}

.form-group:nth-child(2) {
    animation-delay: 0.3s;
}

.form-group:nth-child(3) {
    animation-delay: 0.4s;
}

.form-group:nth-child(4) {
    animation-delay: 0.5s;
}

.form-group:nth-child(5) {
    animation-delay: 0.6s;
}

.form-group:nth-child(6) {
    animation-delay: 0.7s;
}

.form-group label {
    font-size: 12px;
    font-weight: 400;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    /* color: rgba(255, 255, 255, 0.9); */
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group label::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 4px;
    background: linear-gradient(135deg, #e95327 0%, #f17a4d 100%);
    border-radius: 50%;
    opacity: 0.8;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 14px 16px;
    border: 1.5px solid rgba(233, 83, 39, 0.25);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: #2b2e32;
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: rgba(233, 83, 39, 0.4);
    background: rgba(255, 255, 255, 0.08);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(233, 83, 39, 0.8);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(233, 83, 39, 0.3),
        inset 0 0 20px rgba(233, 83, 39, 0.1);
    transform: translateY(-2px);
}

/* Two-column grid for primary fields */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px 20px;
}

.form-grid .form-group {
    margin: 0;
}

@media (max-width: 720px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

.form-group select {
    appearance: none;

    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
    cursor: pointer;
}

.form-group select option {
    background-color: #ffffff;
    color: #3f4346;
    padding: 8px;
}

.form-group textarea {
    resize: vertical;
    min-height: 130px;
    font-family: inherit;
    line-height: 1.5;
}

.inquiry-submit-btn {
    padding: 16px 40px;
    background: linear-gradient(135deg, #e95327 0%, #d63f1b 100%);
    color: #fff !important;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 15px;
    box-shadow: 0 8px 25px rgba(233, 83, 39, 0.35),
        0 0 20px rgba(233, 83, 39, 0.15);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.inquiry-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.inquiry-submit-btn:hover {
    background: linear-gradient(135deg, #d63f1b 0%, #c42f0a 100%);
    box-shadow: 0 12px 40px rgba(233, 83, 39, 0.5),
        0 0 30px rgba(233, 83, 39, 0.25);
    transform: translateY(-3px);
}

.inquiry-submit-btn:hover::before {
    left: 100%;
}

.inquiry-submit-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(233, 83, 39, 0.3);
}

.inquiry-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .project-inquiry-section {
        padding: 80px 0px;
    }

    .inquiry-container {
        max-width: 100%;
        padding: 0 20px;
    }



    .inquiry-content {
        padding: 40px 30px;
    }

    .inquiry-content h2 {
        font-size: 32px;
        margin-bottom: 10px;
    }

    .inquiry-content>p {
        font-size: 14px;
        margin-bottom: 35px;
    }

    .inquiry-container {
        max-width: 100%;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px;
        /* Prevents zoom on mobile iOS */
    }

    .inquiry-form {
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .project-inquiry-section {
        padding: 60px 0%;
    }

    .inquiry-content {
        padding: 30px 20px;
        border-radius: 12px;
    }

    .inquiry-content h2 {
        font-size: 26px;
        margin-bottom: 8px;
    }

    .inquiry-content>p {
        font-size: 13px;
        margin-bottom: 25px;
    }

    .inquiry-form {
        gap: 16px;
    }

    .form-group label {
        font-size: 11px;
        letter-spacing: 0.8px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px 14px;
        font-size: 16px;
        border-radius: 8px;
    }

    .inquiry-submit-btn {
        padding: 14px 30px;
        font-size: 12px;
        letter-spacing: 1px;
    }
}

/* Loading and success states */
.inquiry-form.submitting .inquiry-submit-btn {
    opacity: 0.7;
    pointer-events: none;
}

.inquiry-form.submitting .inquiry-submit-btn::after {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-left: 8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Success message animation */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}