/* CONTACT SECTION */

.contact {
    padding: 120px 8%;
    background: linear-gradient(135deg, #fffaf3, #fdf6ec);
    transition: 0.4s ease;
}

.contact-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 1.05fr);
    gap: 70px;
    align-items: center;
}

/* LEFT SIDE */
.contact-info {
    min-width: 0;
}

.contact-info h2 {
    font-size: 36px;
    margin: 15px 0 20px;
    text-align: left;
}

.contact-info p {
    color: #6b4f3a;
    line-height: 1.7;
    margin-bottom: 25px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.detail {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: var(--card);
    padding: 12px 18px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    line-height: 1.6;
    overflow-wrap: anywhere;
    transition: 0.3s;
}

.detail-icon {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 38px;
    border-radius: 50%;
    background: rgba(139, 0, 0, 0.1);
    color: var(--primary);
}

.detail-icon svg {
    width: 19px;
    height: 19px;
    fill: currentColor;
}

.detail strong {
    display: block;
    color: var(--primary);
    margin-bottom: 4px;
}

.detail:hover {
    transform: translateX(6px);
}

/* RIGHT FORM */
.contact-form {
    width: 100%;
    min-width: 0;
    background: var(--card);
    padding: 40px;
    border-radius: 25px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.08);
}

.input-group {
    margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 18px;
    border-radius: 12px;
    border: 1px solid #ddd;
    font-size: 14px;
    transition: 0.3s;
    background: transparent;
    color: var(--text);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(139,0,0,0.1);
}

/* Button */
.contact-btn {
    width: 100%;
    padding: 14px;
    border-radius: 40px;
    border: none;
    background: var(--primary);
    color: white;
    font-size: 15px;
    cursor: pointer;
    transition: 0.3s;
}

.contact-btn:hover {
    background: #a52a2a;
    transform: translateY(-4px);
}

/* DARK MODE CONTACT FIX */

body.dark .contact {
    background: linear-gradient(135deg, #1f1813, #14100d);
}

body.dark .contact-info h2 {
    color: #f5e9dc;
}

body.dark .contact-info p {
    color: #d6c3b0;
}

body.dark .detail {
    background: #2a1e18;
    box-shadow: none;
}

body.dark .detail-icon {
    background: rgba(193,154,107,0.15);
    color: #c19a6b;
}

body.dark .detail strong {
    color: #c19a6b;
}

body.dark .contact-form {
    background: #2a1e18;
    box-shadow: 0 25px 60px rgba(0,0,0,0.5);
}

body.dark .contact-form input,
body.dark .contact-form textarea {
    border: 1px solid #3a2a22;
}

body.dark .contact-form input:focus,
body.dark .contact-form textarea:focus {
    box-shadow: 0 0 0 3px rgba(193,154,107,0.15);
}
