
/** Page Layout Styles **/
.main-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    --bg-gradient: linear-gradient(90deg, rgba(169, 128, 111, 0.81) 0%, rgba(169, 128, 111, 0.81) 0%, rgba(243, 248, 240, 0.81) 100%);
    background: var(--bg-gradient);
    min-height: calc(100vh - 180px);
}

.contact-grid {
    display: flex;
    flex-direction: row;
    gap: 0;
    --bg-gradient: linear-gradient(90deg, rgba(169, 128, 111, 0.81) 0%, rgba(169, 128, 111, 0.81) 0%, rgba(243, 248, 240, 0.81) 100%);
    background: var(--bg-gradient);
}
.about-grid, .services-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    --bg-gradient: linear-gradient(90deg, rgba(169, 128, 111, 0.81) 0%, rgba(169, 128, 111, 0.81) 0%, rgba(243, 248, 240, 0.81) 100%);
    background: var(--bg-gradient);
    min-height: calc(100vh - 180px);
    padding: 2rem 1rem;
}

/* Services page grid layout for wider screens */
@media (min-width: 800px) {
    .services-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "will-writing advanced-decision"
            "lps biography"
            "contact contact";
        column-gap: 4rem;
        row-gap: 2rem;
        padding: 2rem;
    }

    #will-writing {
        grid-area: will-writing;
    }

    #lps {
        grid-area: lps;
    }

    #advanced-decision {
        grid-area: advanced-decision;
    }

    #biography {
        grid-area: biography;
    }

    #contact {
        grid-area: contact;
    }
}
.about-grid h2, .services-grid h2 {
    text-align: center;
    font-size: 2rem;
    padding: 1rem 5rem;
}
.about-grid p{
    font-size: 1.2rem;
    margin-bottom: 1rem;
    text-align: center;
    padding: 0 4rem;
}
.about-grid h2, .services-grid h2 {
    text-align: center;
    font-size: 1.2rem;
    padding: 1rem 5rem;
}
.pricing{
    font-size: 1.2rem;
}
.pricing p{
    margin-bottom: 0.5rem;
}
.pricing h6{
    font-size: 1.2rem;
}
.pricing div{
    margin-bottom: 1rem;
}

/* Mobile order: hero, selfie, contact, certification */
.hero {
    order: 1;
    text-align: center;
    padding: 30px;
}

.selfie {
    order: 2;
    padding: 30px;
}

.contact {
    order: 3;
    padding: 30px;
}

.certification {
    order: 4;
    padding: 30px;
}

/* Desktop Layout - 2x2 grid when width >= 1000px */
@media (min-width: 1000px) {
    .main-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        gap: 0;
        grid-template-areas:
            "hero selfie"
            "contact certification";
    }
    .contact-grid {
        flex-direction: column;;
    }

    .hero {
        grid-area: hero;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .selfie {
        grid-area: selfie;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .contact {
        grid-area: contact;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .certification {
        grid-area: certification;
        display: block;
    }
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-style: italic;
}

.hero-content .subtitle {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 300;
    font-style: italic;
}

.hero-content .service-info {
    font-size: 1.1rem;
    font-style: italic;
}

/* Selfie Section */


.selfie {
    width: 100%;
    max-width: 300px;
    margin: 2rem auto 0;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.selfie img {
    width: 250px;
    height: 320px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}


/* Certification Section */

.certification {
    padding: 80px 20px;
    max-width: 600px;
    text-align: center;
    margin: 0 auto;
    width: 100%;
}

.certification > div {
    margin: 0 auto 1rem;
}

.certification p {
    margin-top: 1rem;
    font-size: 1.1rem;
}

/* Contact Section */
.contact {
    padding: 80px 20px;
    text-align: center;
}

.contact h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.btn-primary {
    display: inline-block;
    padding: 15px 40px;
    background-color: rgb(169, 128, 111);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}


/* Contact Page Styles */
.contact-grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    padding: 3rem;
    /* padding: 4rem 2rem; */
    /* max-width: 1200px; */
    margin: 0 auto;
    --bg-gradient: linear-gradient(90deg, rgba(169, 128, 111, 0.81) 0%, rgba(169, 128, 111, 0.81) 0%, rgba(243, 248, 240, 0.81) 100%);
    background: var(--bg-gradient);
    min-height: calc(100vh - 200px);
}

@media (min-width: 768px) {
    .contact-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}

#contact-form h2,
#contact-info h2 {
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

#contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#contact-info p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

#contact-info a {
    color: rgb(169, 128, 111);
    text-decoration: none;
}

#contact-info a:hover {
    text-decoration: underline;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group textarea {
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgb(169, 128, 111);
}

.btn-submit {
    width: 100%;
    padding: 15px;
    background-color: rgb(169, 128, 111);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, opacity 0.3s;
}

.btn-submit:hover {
    transform: translateY(-2px);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 5px;
    text-align: center;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.error-message {
    color: #721c24;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content .subtitle {
        font-size: 1.1rem;
    }

    .services h2,
    .contact h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 60px 20px;
    }

    .hero-content h1 {
        font-size: 1.5rem;
    }
}
