﻿* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    /*background-color: #f0f0f0;*/
    min-height: 100vh;
    flex-direction: column;
    align-items: center;
    /*padding: 20px;*/
}

h1 {
    font-size: 36px;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: bold;
}

.certificate-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh; /* full viewport height */
    background-color: #f0f0f0; /* optional background */
}

.certificate-container {
    background: url('../Demoimg/contact_us_Bg.png') no-repeat center center / contain;
    width: 100%;
    max-width: 850px;
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    margin-top: 6rem;
    margin-bottom: 2rem;
    /*    padding: 60px;*/
    /*    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);*/
    /*background-color: white;*/ /* fallback */
    /*}*/


    .title

{
    text-align: center;
}

.left-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-right: 20px;
}

    .left-image img {
        max-width: 100%;
        max-height: 200px;
        object-fit: contain;
    }

.form-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 415px; /* reduce width */
    margin: 0 auto; /* center the form */
}


    .form-section form-control,
    .form-section textarea {
        width: 100% !important;
        padding: 12px 15px !important;
        border: 1px solid #ccc !important;
        border-radius: 15px !important;
        font-size: 16px !important;
        background-color: rgba(255, 255, 255, 0.95) !important;
    }

    .form-section textarea {
        resize: vertical;
        min-height: 100px;
    }

.button {
    background: linear-gradient(to right, #fbc14c, #ff914d);
    color: white;
    padding: 5px;
    border: none;
    width: 40%;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
    margin: 0 auto;
}

    .button:hover {
        background: linear-gradient(to right, #ffaa00, #ff6a00);
    }

@media (max-width: 768px) {
    h1 {
        font-size: 28px;
    }

    .certificate-container {
        flex-direction: column;
        aspect-ratio: auto;
        padding: 70px 20px;
        background-size: contain;
    }

    .left-image {
        margin-bottom: 20px;
    }

    .title {
        font-size: 24px;
        margin-top: 2rem;
    }

    .form-section {
        max-width: 260px;
        height: 70vh
    }

        .form-section button {
            width: 100%;
        }
}

@media (max-width: 480px) {
    h1 {
        font-size: 28px;
    }

    .certificate-container {
        flex-direction: column;
        aspect-ratio: auto;
        padding: 85px 0px;
        background-size: cover;
    }

    .left-image {
        margin-bottom: 20px;
    }

    .title {
        font-size: 24px;
        margin-top: 2rem;
    }

    .form-section {
        max-width: 260px;
        height: 70vh
    }

        .form-section button {
            width: 100%;
        }
}

@media (max-width: 320px) {
    h1 {
        font-size: 5px;
    }

    .title {
        font-size: 20px;
        margin-top: 2rem;
    }

    .form-section {
        max-width: 260px;
        height: 70vh
    }
}
