/* =========================================================
   4CsGRAM Contact Form Styles
   ========================================================= */

/* Contact Section */
.contact-section {
    padding: 80px 20px;
    background: #f8f9fa;
    min-height: 70vh;
}

/* Form Container */
.contact-form-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

/* Form Header */
.contact-form-header {
    text-align: center;
    margin-bottom: 40px;
}

.contact-form-header h1 {
    font-size: 36px;
    color: #2c3e50;
    font-weight: 800;
    margin-bottom: 15px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.contact-form-header p {
    color: #666;
    font-size: 16px;
    font-weight: 600;
}

.required-mark {
    color: #e84545;
    font-size: 16px;
    margin-left: 5px;
}

/* Form Table */
.contact-form-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 30px;
}

.contact-form-table tr {
    border-bottom: 1px solid #e9ecef;
}

.contact-form-table tr:last-child {
    border-bottom: none;
}

/* Table Header (Labels) */
.contact-form-table th {
    background: #f8f9fa;
    padding: 20px;
    text-align: left;
    width: 30%;
    font-weight: 700;
    color: #2c3e50;
    vertical-align: top;
    font-size: 15px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Table Data (Input Fields) */
.contact-form-table td {
    padding: 20px;
    width: 70%;
    vertical-align: top;
}

/* Input Fields */
.contact-form-table input[type="text"],
.contact-form-table input[type="email"],
.contact-form-table textarea,
.contact-form-table select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    transition: all 0.3s ease;
    background: #fff;
}

.contact-form-table input[type="text"]:focus,
.contact-form-table input[type="email"]:focus,
.contact-form-table textarea:focus,
.contact-form-table select:focus {
    border-color: #FFA500;
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 165, 0, 0.1);
}

/* Name Fields */
.name-fields {
    display: flex;
    gap: 15px;
}

.name-fields input {
    flex: 1;
}

/* Textarea */
.contact-form-table textarea {
    resize: vertical;
    min-height: 150px;
}

/* Note Text */
.note-text {
    font-size: 13px;
    color: #888;
    margin-top: 8px;
    display: block;
    line-height: 1.5;
}

/* Consent Area */
.consent-area {
    padding: 25px;
    text-align: center;
    border-top: 2px solid #e9ecef;
    margin-top: 30px;
    background: #f8f9fa;
    border-radius: 8px;
}

.consent-area label {
    font-size: 15px;
    color: #333;
    font-weight: 600;
    cursor: pointer;
}

.consent-area input[type="checkbox"] {
    margin-right: 8px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.consent-area a {
    color: #FFA500;
    text-decoration: none;
    font-weight: 700;
}

.consent-area a:hover {
    text-decoration: underline;
}

/* Submit Button */
.submit-button-wrapper {
    text-align: center;
    margin-top: 30px;
}

.submit-button {
    background: linear-gradient(135deg, #8B008B 0%, #6d006d 100%);
    color: white;
    padding: 16px 60px;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 0, 139, 0.3);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 0, 139, 0.4);
}

.submit-button:active {
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-form-container {
        padding: 25px 20px;
    }
    
    .contact-form-header h1 {
        font-size: 28px;
    }
    
    .contact-form-table {
        display: block;
    }
    
    .contact-form-table tr {
        display: block;
        margin-bottom: 20px;
        border-bottom: 1px solid #e9ecef;
        padding-bottom: 20px;
    }
    
    .contact-form-table th,
    .contact-form-table td {
        display: block;
        width: 100%;
        padding: 10px 0;
    }
    
    .contact-form-table th {
        background: transparent;
        margin-bottom: 8px;
        font-size: 14px;
    }
    
    .name-fields {
        flex-direction: column;
        gap: 10px;
    }
    
    .submit-button {
        width: 100%;
        padding: 16px 30px;
    }
}
