/* ===========================
   partner.css — DIY Solutions
   Partner With Us Page Only
   (navbar styles live in styles.css)
   =========================== */
/* Prevent over-stretching on large screens (MacBooks) */
body {
    max-width: 100vw;
    overflow-x: hidden;
}

/* Ensure all wrappers behave */
* {
    box-sizing: border-box;
}

/* ══════════════════════════════════
   HERO
   ══════════════════════════════════ */

.partner-hero {
    min-height: 42vh;
    display: flex;
    align-items: flex-end;
}

@media (min-width: 768px) {
    .partner-hero { min-height: 52vh; }
}

.hero-grid {
    background-image:
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 60px 60px;
}

.hero-eyebrow {
    opacity: 0;
    transform: translateY(16px);
    animation: fadeUp 0.7s ease forwards 0.2s;
}

.hero-title {
    font-size: clamp(3.5rem, 10vw, 8rem);
    opacity: 0;
    transform: translateY(24px);
    animation: fadeUp 0.8s ease forwards 0.4s;
}

@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════
   CONTACT INFO BLOCKS
   ══════════════════════════════════ */

.contact-info-block {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.contact-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    color: #86868b;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.contact-value {
    display: block;
    font-size: 0.95rem;
    color: #1d1d1f;
    line-height: 1.5;
    font-weight: 400;
    text-decoration: none;
}

.contact-line {
    margin-top: 16px;
    height: 1px;
    background: #e8e8ed;
    width: 100%;
}

/* ══════════════════════════════════
   CONNECT CHANNEL CARDS
   ══════════════════════════════════ */

.connect-channel-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    border-radius: 18px;
    background: #ffffff;
    border: 1.5px solid #e8e8ed;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.connect-channel-card:hover {
    border-color: #1d1d1f;
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}

.connect-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #1d1d1f; /* default black — no brand colours */
}

.connect-text {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.connect-name {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1d1d1f;
}

.connect-desc {
    display: block;
    font-size: 0.75rem;
    color: #86868b;
    margin-top: 2px;
}

.connect-arrow {
    font-size: 1.1rem;
    color: #b0b0b5;
    flex-shrink: 0;
    transition: color 0.2s, transform 0.2s;
}

.connect-channel-card:hover .connect-arrow {
    color: #1d1d1f;
    transform: translateX(4px);
}

@media (max-width: 640px) {
    .connect-channel-card { padding: 14px 16px; }
    .connect-icon-wrap    { width: 42px; height: 42px; }
}

/* ══════════════════════════════════
   WRITE US — FORM LAYOUT
   Left description + right form
   ══════════════════════════════════ */

.form-layout {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

@media (min-width: 768px) {
    .form-layout {
        flex-direction: row;
        gap: 72px;
        align-items: flex-start;
    }
    .form-left  { width: 38%; flex-shrink: 0; }
    .form-right { flex: 1; min-width: 0; }
}

/* Two-column row (Name + Email) */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 28px;
}

@media (max-width: 560px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .form-row .form-field { margin-bottom: 28px; }
}

/* Individual field */
.form-field {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-bottom: 28px;
}

.form-field:last-child { margin-bottom: 0; }

/* Label */
.field-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: #86868b;
    margin-bottom: 10px;
    text-transform: uppercase;
}

/* All inputs / selects / textareas */
.form-input {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 10px 0;
    font-size: 0.95rem;
    color: #1d1d1f;
    background: transparent;
    border: none;
    border-bottom: 1.5px solid #d2d2d7;
    outline: none;
    transition: border-color 0.2s ease;
    font-family: inherit;
    -webkit-appearance: none;
    appearance: none;
    border-radius: 0;
    line-height: 1.5;
}

.form-input::placeholder { color: #b0b0b5; }
.form-input:focus        { border-bottom-color: #1d1d1f; }
.form-input.input-error  { border-bottom-color: #e53e3e; }

/* Select dropdown arrow */
.form-select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2386868b' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 6px center;
    padding-right: 28px;
}

/* Textarea */
.form-textarea {
    resize: vertical;
    min-height: 110px;
    padding-top: 8px;
    line-height: 1.6;
}

/* Error text */
.field-error {
    display: none;
    font-size: 0.72rem;
    color: #e53e3e;
    margin-top: 6px;
    line-height: 1.4;
}

.field-error.show { display: block; }

/* ══════════════════════════════════
   SUBMIT BUTTON
   ══════════════════════════════════ */

.submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #1d1d1f;
    color: #ffffff;
    padding: 14px 36px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
    font-family: inherit;
    white-space: nowrap;
}

.submit-btn:hover    { background: #3a3a3c; transform: translateY(-1px); }
.submit-btn:active   { transform: translateY(0); }
.submit-btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

@media (max-width: 560px) {
    .submit-btn { width: 100%; }
}

/* ══════════════════════════════════
   ONLINE BADGE
   ══════════════════════════════════ */

.form-side-badge {
    display: flex;
    align-items: center;
    gap: 8px;
}

.badge-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #34d399;
    flex-shrink: 0;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%       { transform: scale(1.4); opacity: 0.7; }
}

/* ══════════════════════════════════
   SUCCESS / ERROR BANNERS
   ══════════════════════════════════ */

.success-msg {
    font-size: 0.9rem;
    color: #276749;
    background: #f0fff4;
    border: 1px solid #9ae6b4;
    padding: 14px 18px;
    border-radius: 12px;
    margin-top: 20px;
}

.error-msg {
    font-size: 0.9rem;
    color: #742a2a;
    background: #fff5f5;
    border: 1px solid #fc8181;
    padding: 14px 18px;
    border-radius: 12px;
    margin-top: 20px;
}

/* ══════════════════════════════════
   SPINNER UTILITY
   ══════════════════════════════════ */

.animate-spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* ══════════════════════════════════
   HAMBURGER ANIMATION
   (single definition — no duplicates)
   ══════════════════════════════════ */

#menu-toggle.open .ham-line:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}
#menu-toggle.open .ham-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
#menu-toggle.open .ham-line:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}