/* ============================================
   EMITRUST CUSTOM WRITING — styles/custom-writing.css
   Brand: ink #0D0D0D, teal #06AAC5, off #F5F5F3
   ============================================ */

/* ============================================
   PAGE LAYOUT
   ============================================ */
.custom-writing-wrapper {
    min-height: 100vh;
    background: #F5F5F3;
    padding: 3rem 0;
}

.custom-writing-container {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ============================================
   PAGE HEADER
   ============================================ */
.page-hero-custom {
    margin-bottom: 2rem;
}

.page-hero-custom h1 {
    font-family: 'Syne', sans-serif;
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    font-weight: 800;
    color: #0D0D0D;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.page-hero-custom p {
    font-size: 0.9rem;
    color: #9A9A9A;
    margin: 0;
    max-width: 600px;
    line-height: 1.6;
}

/* eyebrow tag above heading */
.page-hero-custom::before {
    content: 'Custom Writing';
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    color: #06AAC5;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border: 1px solid rgba(6,170,197,0.3);
    padding: 0.3rem 0.875rem;
    margin-bottom: 0.875rem;
}

/* hide the old float icon — no decorative icons */
.hero-icon-custom { display: none; }

/* ============================================
   FORM CARD
   ============================================ */
.custom-writing-card {
    background: white;
    border: 1px solid #E8E8E5;
    padding: 2.5rem;
}

/* ============================================
   ALERTS
   ============================================ */
.alert {
    padding: 1rem 1.25rem;
    margin-bottom: 1.75rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.875rem;
    line-height: 1.6;
    border-radius: 0;
    animation: none;
}

.alert i { font-size: 1rem; margin-top: 1px; flex-shrink: 0; }

.alert-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #15803d;
}

.alert-danger {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

.alert ul {
    margin: 0.4rem 0 0 0;
    padding-left: 1.25rem;
}

.alert ul li { margin-bottom: 0.2rem; }

.alert-link {
    color: inherit;
    font-weight: 700;
    text-decoration: underline;
}

/* ============================================
   INFO BOX
   ============================================ */
.info-box {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    padding: 1rem 1.25rem;
    margin-bottom: 2rem;
    font-size: 0.85rem;
    color: #1d4ed8;
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    line-height: 1.6;
}

.info-box strong {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    color: #1d4ed8;
}

.info-box p { margin: 0; color: #1e40af; }

/* ============================================
   FORM SECTIONS
   ============================================ */
.form-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #E8E8E5;
}

.form-section:last-of-type { border-bottom: none; padding-bottom: 0; }

.section-title {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-family: 'Syne', sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
    color: #0D0D0D;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 1.25rem;
}

.section-title i { color: #06AAC5; font-size: 1rem; }

/* ============================================
   FORM LABELS
   ============================================ */
.form-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    color: #9A9A9A;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    margin-bottom: 0.4rem;
}

.required { color: #b91c1c; }

.help-text {
    font-size: 0.75rem;
    color: #9A9A9A;
    margin-top: 0.3rem;
    display: block;
}

/* ============================================
   FORM INPUTS
   ============================================ */
.form-control-custom,
.form-select-custom,
.form-textarea-custom {
    width: 100%;
    border: 1px solid #E8E8E5;
    background: white;
    padding: 0.75rem 1rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    color: #0D0D0D;
    outline: none;
    transition: border-color 0.2s;
    border-radius: 0;
    appearance: none;
}

.form-control-custom::placeholder,
.form-textarea-custom::placeholder { color: #9A9A9A; }

.form-control-custom:focus,
.form-select-custom:focus,
.form-textarea-custom:focus {
    border-color: #06AAC5;
    background: white;
}

/* Select arrow */
.form-select-custom {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath fill='%239A9A9A' d='M5 7L1 3h8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.875rem center;
    padding-right: 2.5rem;
}

.form-textarea-custom {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

/* ============================================
   GRID (Bootstrap-compatible, lightweight)
   ============================================ */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -0.5rem;
}

.row > * { padding: 0 0.5rem; }
.g-3 > * { margin-bottom: 1rem; }

.col-12  { width: 100%; }
.col-md-6 { width: 100%; }
.col-md-3 { width: 100%; }

@media (min-width: 768px) {
    .col-md-6 { width: 50%; }
    .col-md-3 { width: 25%; }
}

/* ============================================
   SUBMIT BUTTON
   ============================================ */
.btn-submit-custom {
    width: 100%;
    background: #0D0D0D;
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
    border-radius: 0;
}

.btn-submit-custom:hover    { background: #06AAC5; }
.btn-submit-custom:disabled { background: #E8E8E5; color: #9A9A9A; cursor: not-allowed; }

/* ============================================
   SPINNER (keep for JS use)
   ============================================ */
.spinner-border {
    display: inline-block;
    width: 0.875rem;
    height: 0.875rem;
    vertical-align: -0.125em;
    border: 0.15em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================
   VALIDATION ERROR (used by JS)
   ============================================ */
.validation-error {
    font-size: 0.75rem;
    color: #b91c1c;
    margin-top: 0.3rem;
    display: block;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .custom-writing-wrapper { padding: 2rem 0; }
    .custom-writing-card    { padding: 1.5rem; }
}

@media (max-width: 480px) {
    .custom-writing-card { padding: 1.25rem; }
    .form-section { margin-bottom: 1.5rem; padding-bottom: 1.5rem; }
}

@media print {
    .custom-writing-wrapper { background: white; }
    .btn-submit-custom { display: none; }
}