/* ===== Page Centering ===== */
section {
    min-height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f6f8fb, #eef2f7);
    position: relative;
    overflow: hidden;
}

/* ===== Floating Pen Watermark ===== */
section::before {
    content: "";
    position: absolute;
    width: 320px;
    height: 320px;
    background: url("images/pen-tool.png") no-repeat center;
    background-size: contain;
    opacity: 0.05;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    pointer-events: none;
}

/* ===== Card ===== */
.bpm-form-container {
    background: #ffffff;
    width: 100%;
    max-width: 620px;
    border-radius: 18px;
    padding: 36px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
}

/* ===== Header ===== */
.bpm-form-header {
    text-align: center;
    margin-bottom: 30px;
}

.bpm-title-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.bpm-pen-icon {
    width: 30px;
}

.bpm-form-title {
    font-size: 26px;
    font-weight: 700;
    color: #1f2937;
}

.bpm-form-subtitle {
    font-size: 14px;
    color: #6b7280;
    margin-top: 6px;
}

/* ===== Layout ===== */
.bpm-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 20px;
}

.bpm-full-width {
    margin-bottom: 20px;
}

/* ===== Labels ===== */
.bpm-label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
    display: block;
}

/* ===== Inputs with Micro Animations ===== */
.bpm-input,
.bpm-select,
.bpm-textarea,
.bpm-file {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    font-size: 14px;
    transition: all 0.3s ease;
}

.bpm-input:focus,
.bpm-select:focus,
.bpm-textarea:focus,
.bpm-file:focus {
    outline: none;
    border-color: #79C046;
    transform: scale(1.02);
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.2);
}

/* ===== Checkbox ===== */
.bpm-checkbox-container {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #374151;
    cursor: pointer;
}

/* ===== File Upload (Hidden by default) ===== */
.bpm-file-wrapper {
    display: none;
    animation: fadeSlide 0.4s ease forwards;
}

@keyframes fadeSlide {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Button ===== */
.bpm-whatsapp-submit {
    width: 100%;
    padding: 15px;
    background: #79C046;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.bpm-whatsapp-submit:hover {
    background: #79C046;
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(37, 211, 102, 0.35);
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
    .bpm-form-row {
        grid-template-columns: 1fr;
    }
}

/* WhatsApp Button States */
.bpm-whatsapp-submit {
  position: relative;
  overflow: hidden;
  transition: background-color 0.3s ease;
}

.bpm-whatsapp-submit.loading {
  pointer-events: none;
  background-color: #6bbf59;
}

.bpm-whatsapp-submit.success {
  background-color: #145506;
}

/* Checkmark */
.bpm-whatsapp-submit::after {
  content: "✓";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
