/* MGDE Contact Form - Exact Design Match */

/* Reset and base styles */
.mgde-contact-form-wrapper {
    width: 100%;
    background-color: #f5f5f5;
    padding: 0;
    margin: 0;
}

.mgde-contact-form-wrapper * {
    box-sizing: border-box;
}

.mgde-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
}

.mgde-form-grid {
    display: grid;
    grid-template-columns: 340px 1fr;
    min-height: 100vh;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    background-color:  rgb(255, 255, 255);
}

/* Left Side - Yellow Background */
.mgde-left-side {
background: url(../images/contact-circle.png) center bottom no-repeat #ffc600;
    padding: 30px;
    border-radius: 10px;
}

.mgde-contact-info {
    color: #000;
}

.mgde-heading {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #000;
    text-transform: capitalize;
    font-family: 'Open Sans';
}

.mgde-subheading {
    font-size: 14px;
    font-weight: 400;
    margin: 0 0 40px 0;
    color: #000;
    line-height: 1.6;
}

.mgde-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    color: #000;
}

.mgde-info-item i {
    font-size: 20px;
    margin-right: 15px;
    margin-top: 3px;
    color: #000;
}

.mgde-info-item div {
    line-height: 1.6;
}
.mgde-left-side > div > div:nth-child(4){
        align-items: center;
}
.mgde-info-item span {
    display: block;
    font-size: 14px;
    color: #000;
    font-weight: 600;
    margin-bottom: 5px;
}

.mgde-info-item a {
    color: #000;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.mgde-info-item a:hover {
    text-decoration: underline;
}
.estimate-phone-link:hover {
    background: #00000000 !important;
}
.mgde-social-icons {
    display: flex;
    gap: 15px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.mgde-social-icons a {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    color: #FFD700;
    border-radius: 50%;
    font-size: 16px;
    transition: all 0.3s;
    text-decoration: none;
}

.mgde-social-icons a:hover {
    background: #333;
    transform: translateY(-3px);
}

/* Right Side - Form */
.mgde-right-side {
    background: #ffffff !important;
    padding: 60px 50px;
}

.mgde-contact-form {
    max-width: 100%;
}

.mgde-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    /* margin-bottom: 20px; */
}

.mgde-form-row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    /* margin-bottom: 10px; */
}

.mgde-form-group {
    margin-bottom: 20px;
}

.mgde-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #000000;
    font-size: 14px;
}

.mgde-form-group input[type="text"],
.mgde-form-group input[type="email"],
.mgde-form-group input[type="tel"],
.mgde-form-group textarea,
.mgde-form-group select {
    width: 100%;
    padding: 12px 15px;
   
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    background: #fff;
    transition: all 0.3s;
    color: #333;
}

.mgde-form-group input::placeholder,
.mgde-form-group textarea::placeholder {
    color: #999;
}

.mgde-form-group input:focus,
.mgde-form-group textarea:focus,
.mgde-form-group select:focus {
    outline: none;
    border-left-color: #FFC107;
    background: #fff;
    box-shadow: 0 0 5px rgba(255, 215, 0, 0.3);
}

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

/* Door Section */
.mgde-door-heading {
    font-size: 16px;
    font-weight: 700;
    color: #000;
    margin: 30px 0 15px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mgde-select-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.mgde-select-row select {
    width: 100%;
}

/* Buttons */
.mgde-add-row-btn {
    background: #FFD700;
    color: #000;
    font-weight: 700;
    text-transform: uppercase;
    padding: 12px 25px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.mgde-add-row-btn:hover {
    background: #FFC107;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.mgde-delete-row-btn {
    background: #ff4444;
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    padding: 8px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s;
    margin: 10px 0;
}

.mgde-delete-row-btn:hover {
    background: #cc0000;
}

/* Upload Section */
.mgde-upload-instruction {
    font-size: 14px;
    color: #000000;
    line-height: 1.6;
    margin-bottom: 10px;
}

.mgde-upload-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.mgde-upload-list li {
    font-size: 13px;
    color: #000000;
    line-height: 1.6;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.mgde-upload-list li:before {
    content: "•";
    position: absolute;
    left: -15px;
    color: #FFD700;
    font-weight: bold;
}

/* Dropzone */
.mgde-drop-zone {
    width: 100%;
    min-height: 150px;
    padding: 30px;
    border: 2px dashed #FFD700;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    color: #666;
    font-size: 14px;
    background: #fefefe;
}

.mgde-drop-zone.hover {
    border-color: #FFC107;
    background: #fffef5;
}

.mgde-drop-zone:hover {
    background: #fffef8;
    border-color: #FFC107;
}

.mgde-preview {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.mgde-preview-item {
    position: relative;
    display: inline-block;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
    max-width: 250px;
}

.mgde-preview-item .mgde-file-name {
    font-size: 13px;
    color: #333;
    word-break: break-word;
}

.mgde-preview-item .mgde-remove-btn {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff4444;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    transition: all 0.3s;
    font-weight: bold;
}

.mgde-preview-item .mgde-remove-btn:hover {
    background: #cc0000;
    transform: scale(1.1);
}

/* SMS Checkbox */
.mgde-sms-checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    margin: 25px 0;
    gap: 10px;
}

.mgde-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 2px;
    accent-color: #FFD700;
}

.mgde-checkbox-label {
    font-size: 12px;
    line-height: 1.6;
    color: #000000;
    cursor: pointer;
}

.mgde-checkbox-label a {
    color: #FFD700;
    text-decoration: underline;
}

.mgde-checkbox-label a:hover {
    color: #FFC107;
}

/* Submit Button */
.mgde-submit-btn {
    width: 100%;
    background: #ffc600;
    color: #000;
    font-weight: 700;
    text-transform: uppercase;
    padding: 18px 30px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.3s;
    letter-spacing: 1px;
    margin-top: 10px;
}

.mgde-submit-btn:hover {
    background: black;
    transform: translateY(-2px);
color: #ffc600;
    border: 2px solid  #FFC107;
}

/* Error Message */
.mgde-error-message {
    background: #ffebee;
    border-left: 4px solid #f44336;
    padding: 15px;
    margin: 20px 0;
    color: #c62828;
    font-size: 14px;
    border-radius: 4px;
}

/* Responsive Design */
@media only screen and (max-width: 1024px) {
    .mgde-form-grid {
        grid-template-columns: 300px 1fr;
    }
    
    .mgde-left-side {
        padding: 40px 30px;
    }
    
    .mgde-right-side {
        padding: 40px 35px;
    }
}

@media only screen and (max-width: 768px) {
    .mgde-form-grid {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    
    .mgde-left-side {
        padding: 40px 25px;
    }
    
    .mgde-right-side {
        padding: 40px 25px;
    }
    
    .mgde-form-row,
    .mgde-form-row-3 {
        grid-template-columns: 1fr;
    }
    
    .mgde-select-row {
        grid-template-columns: 1fr 1fr;
    }
    
    .mgde-heading {
        font-size: 28px;
    }
    
    .mgde-social-icons {
        margin-top: 35px;
    }
}

@media only screen and (max-width: 480px) {
    .mgde-left-side {
        padding: 30px 20px;
    }
    
    .mgde-right-side {
        padding: 30px 20px;
    }
    
    .mgde-heading {
        font-size: 24px;
    }
    
    .mgde-select-row {
        grid-template-columns: 1fr;
    }
    
    .mgde-social-icons a {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
}

/* Prevent WordPress theme conflicts */
.mgde-contact-form-wrapper h2,
.mgde-contact-form-wrapper h3,
.mgde-contact-form-wrapper p,
.mgde-contact-form-wrapper ul,
.mgde-contact-form-wrapper li {
    margin: revert;
    padding: revert;
}

.mgde-contact-form-wrapper a {
    text-decoration: none;
}

.mgde-contact-form input,
.mgde-contact-form select,
.mgde-contact-form textarea,
.mgde-contact-form button {
    font-family: inherit;
}
