/* Contact Page Styles */

.contact-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.contact-form-wrapper {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.contact-form-wrapper h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 600;
}

.contact-form-wrapper > p {
    color: #6c757d;
    margin-bottom: 30px;
    font-size: 16px;
}

.form-group {
    margin-bottom: 25px;
}

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

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: #fff;
}

.form-control:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.form-control.is-invalid {
    border-color: #dc3545;
}

.form-control.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.invalid-feedback {
    display: none;
    color: #dc3545;
    font-size: 14px;
    margin-top: 5px;
}

.form-control.is-invalid + .invalid-feedback {
    display: block;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.captcha-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.captcha-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
}

.captcha-wrapper .form-control {
    flex: 1 1 240px;
}

.captcha-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.captcha-image img {
    border-radius: 8px;
    border: 1px solid #d1d5db;
    width: 180px;
    height: 60px;
    object-fit: cover;
    background: #f3f4f6;
}

.captcha-refresh {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    color: #007bff;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}

.captcha-refresh:hover {
    text-decoration: underline;
}

.themeht-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.themeht-btn.primary-btn {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
}

.themeht-btn.primary-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

.themeht-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.themeht-btn.loading {
    position: relative;
}

.themeht-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.spinning {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Contact Info Styles */
.contact-info {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 30px;
}

.contact-info h3 {
    color: #2c3e50;
    margin-bottom: 30px;
    font-weight: 600;
    text-align: center;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.contact-item i {
    font-size: 24px;
    color: #007bff;
    margin-right: 15px;
    margin-top: 2px;
    flex-shrink: 0;
}

.contact-item h5 {
    margin: 0 0 5px 0;
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
}

.contact-item p {
    margin: 0;
    color: #6c757d;
    font-size: 14px;
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-form-wrapper,
    .contact-info {
        padding: 30px 20px;
        margin-bottom: 20px;
    }

    .contact-item {
        padding: 15px;
        flex-direction: column;
        text-align: center;
    }

    .contact-item i {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .themeht-btn {
        width: 100%;
        margin-top: 10px;
    }
}

@media (max-width: 576px) {
    .contact-section {
        padding: 40px 0;
    }

    .contact-form-wrapper h3,
    .contact-info h3 {
        font-size: 24px;
    }
}