.project-form .form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 25px;
}

.project-form .form-group {
    flex: 1 1 calc(33.333% - 14px);
    /* Three items per row, accounting for gap */
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    border-bottom: 1px #c9c9c9 solid;
    padding-bottom: 10px;
    position: relative;
}

.project-form .project-details-group {
    flex: 1 1 calc(67% - 10px);
    /* Project details takes more space */
}

.project-form .upload-group {
    flex: 1 1 calc(33% - 10px);
    /* Upload takes less space */
}

.project-form label {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 0;
    display: block;
    min-width: 80px;
}

.project-form input[type="text"],
.project-form input[type="email"],
.project-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 0px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    color: #333;
    background-color: transparent;
    transition: border-color 0.3s ease;
}

.project-form input[type="text"]:focus,
.project-form input[type="email"]:focus,
.project-form textarea:focus {
    border-color: #555;
    outline: none;
}

.project-form textarea {
    resize: vertical;
    min-height: 80px;
}

.project-form .file-input {
    display: none;
    /* Hide the default file input */
    /* visibility: hidden; */
}

.project-form .file-input-label {
    display: inline-block;
    padding: 10px 15px;
    background-color: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: normal;
    text-align: center;
    transition: background-color 0.3s ease;
    margin-bottom: 5px;
    /* Space between button and file name */
}

.project-form .file-input-label:hover {
    background-color: #e0e0e0;
}

.project-form .file-name-display {
    font-size: 13px;
    color: #666;
    margin-top: 5px;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


.project-form .submit-row {
    justify-content: flex-start;
    /* Align button to the left */
    margin-top: 10px;
}

.project-form .submit-button {
    background-color: #222;
    color: #fff;
    padding: 12px 25px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: inline-flex;
    align-items: center;
}

.project-form .submit-button svg {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.project-form .submit-button:hover {
    background-color: #000;
    transform: translateY(-2px);
}

.project-form .submit-button:hover svg {
    transform: translateX(4px);
}

/* Tablet view */
@media (max-width: 991px) {
    .contact-form-container {
        flex-direction: column;
        gap: 30px;
    }

    .contact-form-title-container {
        flex: 0 0 auto;
        /* Reset flex basis */
        width: 100%;
        text-align: center;
        padding-top: 0;
    }

    .contact-form-content {
        flex: 0 0 auto;
        /* Reset flex basis */
        width: 100%;
    }

    .contact-form-title {
        font-size: 32px;
    }

    .project-form .form-group {
        flex: 1 1 calc(50% - 10px);
        /* Two items per row on tablets */
    }

    .project-form .project-details-group,
    .project-form .upload-group {
        flex: 1 1 100%;
        /* Full width for these on tablet and mobile */
    }
}

/* Mobile view */
@media (max-width: 767px) {
    .contact-form-section {
        padding: 50px 0;
    }

    .contact-form-title {
        font-size: 28px;
    }

    .project-form .form-group {
        flex: 1 1 100%;
        /* One item per row on mobile */
    }

    .project-form .submit-row {
        justify-content: center;
    }

    .project-form .submit-button {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
    }
}
.dialog-success-icon{
    text-align: center;
    padding-bottom: 20px;
}

.dialog-success-icon img{
    width:55px;
}

.commit-form-loading-box {
    position: absolute;
    right: 0;
    top: 0;
    background-color: rgba(0, 0, 0, 0.5);
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.loading-spinner {
    border: 5px solid #ccc;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 2s linear infinite;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}
