/* Landing Page - Document Form Section (Sticky Layout) */

.landing-document-form-section {
    padding: 80px 0;
}

.doc-form-container {
    padding-left: 5px;
    padding-right: 5px;
}

.doc-form-layout {
    display: flex;
    align-items: stretch; /* Make columns equal height for sticky to work */
    gap: 30px;
}

/* Left Column (Image) - 8 parts */
.doc-form-left {
    flex: 0 0 66.66%;
    max-width: 66.66%;
}

.doc-form-left-title {
    font-family: 'Dancing Script', cursive;
    font-size: 3.5em !important; /* Reduced to 3.5em as requested */
    color: #007bff;
    margin: 40px 0 30px; /* Add space above and below */
    text-align: center; /* Center the title */
    line-height: 1.2; /* Adjust line height for better readability */

}

.doc-form-left-image-item {
    margin-bottom: 20px; /* Space between images */
}

.doc-form-left-image-item:last-child {
    margin-bottom: 0;
}

.doc-form-left-image-item img {
    width: 100%;
    display: block;
    border-radius: 15px;
}

/* Right Column (Form) - 4 parts */
.doc-form-right {
    flex: 0 0 33.33%;
    max-width: 33.33%;
}

/* Sticky Form Wrapper - Styled like Phases Form */
.doc-form-sticky-wrapper {
    position: sticky;
    position: -webkit-sticky; /* Safari support */
    top: 100px; /* Adjust this value based on your header's height */
    padding: 40px;
    border-radius: 20px; /* Match phases form */
    box-shadow: 0 15px 40px rgba(0,0,0,0.1); /* Match phases form */
    /* Restored Gradient Background */
    background-image: linear-gradient(90deg, #CCFFFF 0%, #CCCCCC 100%);
    z-index: 10; /* Ensure it stays on top */
}

.doc-form-header {
    text-align: left; /* Match phases form */
    margin-bottom: 30px;
}

.doc-form-title {
    font-size: 1.6em;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.doc-form-subtitle {
    font-size: 2.2em;
    font-weight: 800;
    text-transform: uppercase;
    /* Updated Gradient to match user request */
    background-image: linear-gradient(90deg, #2AADDF 0%, #282561 31.46%, #282561 52.61%, #282561 74.94%, #EF3E56 100%);
    display: inline;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;

}

.doc-form .form-row-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.doc-form .form-group {
    margin-bottom: 20px;
}

/* Enhanced Input Styles - Matching Phases Form */
.doc-form input[type="text"],
.doc-form input[type="tel"],
.doc-form input[type="email"] {
    width: 100% !important;
    padding: 16px 20px !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 8px !important;
    font-size: 1rem !important;
    color: #333 !important;
    background-color: #f5f7fa !important;
    transition: all 0.3s ease !important;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.03) !important;
    height: auto !important;
    line-height: normal !important;
}

.doc-form input::placeholder {
    color: #adb5bd !important;
}

.doc-form input:focus {
    outline: none !important;
    border-color: #007bff !important;
    background-color: #fff !important;
    box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.1) !important;
}

/* Submit Button - Matching Phases Form */
.doc-form-submit {
    width: 100%;
    padding: 16px; /* Increased padding */
    background: linear-gradient(90deg, #007bff 0%, #0056b3 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    letter-spacing: 1px;
}

.doc-form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.3);
}

.doc-form-message {
    text-align: center;
    margin-top: 15px;
    padding: 10px;
    border-radius: 5px;
}
.doc-form-message.success { background-color: #d4edda; color: #155724; }
.doc-form-message.error { background-color: #f8d7da; color: #721c24; }


/* Responsive */
@media (max-width: 992px) {
    .doc-form-layout {
        flex-direction: column;
    }
    .doc-form-left,
    .doc-form-right {
        flex: 1 1 100%;
        max-width: 100%;
    }
    .doc-form-right {
        margin-top: 30px;
    }
    .doc-form-sticky-wrapper {
        position: static; /* Disable sticky on mobile */
    }
}

@media (max-width: 768px) {
    .doc-form .form-row-2-col {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .doc-form-left-title {
        font-size: 3em !important; /* Smaller on mobile, also override */
    }
}
