* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f3f3f3;
    color: #111;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

.page {
    min-height: 100vh;
    padding: 50px 20px;
}

.form-card {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.12);
    overflow: hidden;
}

/* HEADER */

.form-header {
    padding: 50px 55px 40px;
    text-align: center;
    background: #fff;
}

.brand {
    font-size: 25px;
    font-weight: 900;
    letter-spacing: 3px;
    color: #111;
}

.brand span {
    color: #d60000;
}

.brand-line {
    width: 55px;
    height: 4px;
    background: #d60000;
    margin: 16px auto 28px;
    border-radius: 10px;
}

.form-header h1 {
    margin: 0;
    font-size: 42px;
    line-height: 1.15;
    font-weight: 800;
    color: #111;
}

.form-header p {
    max-width: 700px;
    margin: 18px auto 0;
    color: #666;
    font-size: 17px;
    line-height: 1.7;
}

/* SECTIONS */

.section {
    padding: 38px 55px;
    border-top: 1px solid #eee;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 25px;
    font-size: 23px;
    font-weight: 800;
    color: #111;
}

.section-title span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background: #d60000;
    color: #fff;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 800;
}

.section-description {
    margin: -12px 0 22px;
    color: #777;
    font-size: 15px;
}

/* GRID */

.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

/* FIELDS */

.field label {
    display: block;
    margin-bottom: 9px;
    font-size: 15px;
    font-weight: 700;
    color: #222;
}

.field label b {
    color: #d60000;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 15px 17px;
    border: 1px solid #dcdcdc;
    border-radius: 5px;
    background: #fff;
    color: #222;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s ease,
                box-shadow 0.2s ease;
}

.field input::placeholder,
.field textarea::placeholder {
    color: #aaa;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: #d60000;
    box-shadow: 0 0 0 3px rgba(214, 0, 0, 0.1);
}

.field textarea {
    min-height: 150px;
    resize: vertical;
    line-height: 1.6;
}

/* SERVICES */

.services {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.service-option {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 14px 15px;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    background: #fafafa;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 600;
}

.service-option:hover {
    border-color: #d60000;
    background: #fff8f8;
}

.service-option input {
    width: 17px;
    height: 17px;
    accent-color: #d60000;
}

/* UPLOAD */

.upload-box {
    border: 2px dashed #d60000;
    border-radius: 15px;
    padding: 18px 16px;
    text-align: center;
    background: #fff8f8;
    transition: background 0.2s ease,
                border-color 0.2s ease;
}

.upload-box.dragover {
    background: #ffecec;
    border-color: #000;
}

.upload-icon {
    width: 34px;
    height: 34px;
    margin: 0 auto 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #d60000;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
}

.upload-box h3 {
    margin: 0;
    font-size: 17px;
}

.upload-box p {
    margin: 2px 0;
    color: #666;
}

.upload-types {
    font-size: 10px;
    color: #999 !important;
}

.upload-button {
    display: inline-block;
    margin-top: 4px;
    padding: 9px 15px;
    border-radius: 8px;
    background: #111;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
}

.upload-button:hover {
    background: #d60000;
}

.upload-button input {
    display: none;
}

#fileList {
    max-width: 650px;
    margin: 10px auto 0;
    text-align: left;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 10px;
    margin-top: 6px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    font-size: 12px;
}

.file-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-size {
    color: #888;
    white-space: nowrap;
}

/* SUBMIT */

.submit-area {
    padding: 40px 55px 50px;
    text-align: center;
    border-top: 1px solid #eee;
}

button[type="submit"] {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 18px 25px;
    border: none;
    border-radius: 11px;
    background: #d60000;
    color: #fff;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 0.4px;
    cursor: pointer;
    transition: background 0.2s ease,
                transform 0.2s ease;
}

button[type="submit"]:hover {
    background: #111;
    transform: translateY(-1px);
}

button[type="submit"]:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.arrow {
    font-size: 24px;
    line-height: 1;
}

.privacy-note {
    margin: 15px 0 0;
    color: #999;
    font-size: 12px;
}

/* MOBILE */

@media (max-width: 800px) {

    .page {
        padding: 20px 12px;
    }

    .form-header {
        padding: 35px 25px 30px;
    }

    .form-header h1 {
        font-size: 31px;
    }

    .form-header p {
        font-size: 15px;
    }

    .section {
        padding: 30px 25px;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .services {
        grid-template-columns: 1fr;
    }

    .submit-area {
        padding: 30px 25px 40px;
    }
}

@media (max-width: 480px) {

    .page {
        padding: 0;
    }

    .form-card {
        border-radius: 0;
    }

    .form-header {
        padding: 30px 20px;
    }

    .form-header h1 {
        font-size: 27px;
    }

    .section {
        padding: 27px 20px;
    }

    .section-title {
        font-size: 20px;
    }

    .submit-area {
        padding: 28px 20px 35px;
    }

    button[type="submit"] {
        font-size: 15px;
    }
}
/* Compact form layout */
.page {
  padding: 25px 15px;
}

.form-header {
  padding: 35px 30px;
}

.section {
  padding: 35px 45px;
}

.form-grid {
  gap: 18px;
}

label {
  margin-bottom: 7px;
}

input,
select,
textarea {
  padding: 12px 14px;
}

textarea {
  min-height: 120px;
}

.submit-area {
  padding: 30px 45px;
}

/* Mobile compact layout */
@media (max-width: 700px) {
  .page {
    padding: 12px 8px;
  }

  .form-header {
    padding: 28px 20px;
  }

  .form-header h1 {
    font-size: 30px;
  }

  .section {
    padding: 28px 20px;
  }

  .form-grid {
    gap: 14px;
  }

  input,
  select,
  textarea {
    padding: 11px 12px;
  }

  textarea {
    min-height: 100px;
  }

  .submit-area {
    padding: 25px 20px;
  }
}

/* Make the large project text box compact */
#quoteForm textarea {
  height: 110px !important;
  min-height: 110px !important;
}

/* Make the file-upload area compact */
#quoteForm .upload-box {
  padding: 18px 16px !important;
}
/* Force a thin upload border */
#quoteForm .upload-box {
  border: 1px dashed #d60000 !important;
  outline: none !important;
  box-shadow: none !important;
}
/* Clean homepage embed */
body {
  background: #fff;
}

.quote-shell {
  padding: 0;
}

.quote-card {
  max-width: none;
  border-radius: 0;
  box-shadow: none;
}