/* CSS for contact screen */
@charset "utf-8";

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Raleway', sans-serif;
    font-size: 16px;
}

 /* Main Content */
 main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 80px 128px 100px 128px;
    background: linear-gradient(135deg, #FFFFFF 0%, #F2EBEA 80%, #F1DDDA 100%);
}

h1 {
    font-size: 350%;
    font-weight: 700;
    text-align: center;
}

.introduction {
    margin-top: 16px;
    font-size: 200px;
    margin-bottom: 42px;
}

.form-container {
    width: 100%;
    max-width: 604px;
}

.form-row {
    display: flex;
    gap:32px;
    margin-bottom:0;
}

.form-group{
    display: flex;
    margin-bottom: 32px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
}

.form-group label {
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 400;
}

.form-group label::after {
    content: "*";
    color: #e86c4d;
    margin-left: 2px;
}

.form-group input,
.form-group textarea {
    padding: 12px 16px;
    border: 1px solid #D0D0D0;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #EDAFA5;
}

.form-group textarea {
    min-height: 320px;
    resize: vertical;
}

.message-group {
    margin-bottom: 16px;
}

.required-text {
    font-size: 80%;
    margin-bottom: 8px;
}

.checkbox-group {
    display: flex;
    gap: 12px;
    margin-bottom: 40px;
}

.checkbox-group input {
    width: 24px;
    height: 24px;
    cursor: pointer;
    justify-content: flex-start;
}

.checkbox-group label {
    font-size: 80%;
}

.checkbox-group label a {
    text-decoration: none;
    font-weight: 500;
}

.submit-btn {
    display: flex;
    justify-content: center; /* Centers the button horizontally */
    width: 100%; 
    background-color: transparent;
}

.submit-btn button {
    background: linear-gradient(180deg, #E1A095 0%, #AE5D50 100%);
    filter : drop-shadow(0px 6px 6px #B45C5060);
    border-radius: 0px 24px 0px 24px; /* Customize corners */
    text-align: center;
    margin-top: 4px;
    font-size: 80%;
    font-weight: 700;
    width:120px;
    height: 50px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    font-size: 100%;
}

.submit-btn button:hover {
    background: #EDAFA5;
    border-radius: 0px 24px 0px 24px; /* Customize corners */
}

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

.status-message {
    margin-top: 24px;
    text-align: center;
    font-size: 14px;
    padding: 8px;
    border-radius: 4px;
    display: none;
}

.error-field {
    border-color: #B45C50 !important;
    box-shadow: 0 0 0 1px #ff3860 !important;
}

.checkbox-group.error-field label {
    color: #ff3860;
}

.error-message {
    background-color: #feecf0;
    color: #ff3860;
}

.success-message {
    background-color: #effaf3;
    color: #257942;
}


/* Update existing media query and add specificity */
@media screen and (max-width: 768px) {
    /* Main Content adjustments */
    main {
        padding: 60px 24px 80px 24px;
    }
    
    h1 {
        font-size: 250%;
    }
    
    .introduction {
        font-size: 120%;
        margin-bottom: 32px;
    }
    
    .form-container {
        max-width: 100%;
    }
    
    .form-row {
        flex-direction: column;
        gap: 16px;
    }
    
    .form-group textarea {
        min-height: 200px;
    }
    
    footer {
        margin-top: 0px;
    }
}

/* Smaller screens (460px and below) */
@media screen and (max-width: 460px) {
    main {
        padding: 40px 20px 60px 20px;
    }
    
    h1 {
        font-size: 200%;
    }
    
    .introduction {
        font-size: 110%;
        margin-bottom: 28px;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .form-group textarea {
        min-height: 180px;
    }
    
    .checkbox-group {
        margin-bottom: 30px;
    }
    
    .checkbox-group label {
        font-size: 70%;
    }

}
