.dgc-wrapper {
    max-width: 760px;
    margin: 0 auto;
    font-family: inherit;
}
.dgc-form {
    background: #fff;
    border-radius: 14px;
    padding: 32px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}
.dgc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 20px;
}
.dgc-field-full { grid-column: 1 / -1; }
.dgc-field label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
    color: #1a1a1a;
}
.dgc-field input,
.dgc-field select,
.dgc-field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d6d6d6;
    border-radius: 8px;
    font-size: 15px;
    box-sizing: border-box;
    transition: border-color .2s, box-shadow .2s;
    font-family: inherit;
    background-color: #fff;
}
.dgc-field select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9'%3E%3Cpath fill='%23555' d='M0 0l7 9 7-9z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}
.dgc-field input:focus,
.dgc-field select:focus,
.dgc-field textarea:focus {
    outline: none;
    border-color: #b3121b;
    box-shadow: 0 0 0 3px rgba(179,18,27,0.12);
}
.dgc-hp { position: absolute !important; left: -9999px !important; top: -9999px !important; }
.dgc-submit-row { margin-top: 8px; text-align: right; }
.dgc-btn {
    background: #b3121b;
    color: #fff;
    border: none;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s, transform .15s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.dgc-btn:hover { background: #8f0e15; }
.dgc-btn:active { transform: scale(0.98); }
.dgc-btn:disabled { opacity: .7; cursor: not-allowed; }
.dgc-btn-loader {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.5);
    border-top-color: #fff;
    border-radius: 50%;
    animation: dgc-spin .7s linear infinite;
}
.dgc-btn.is-loading .dgc-btn-loader { display: inline-block; }
.dgc-btn.is-loading .dgc-btn-text { opacity: .85; }
@keyframes dgc-spin { to { transform: rotate(360deg); } }
.dgc-error-msg {
    color: #b3121b;
    font-size: 14px;
    text-align: left;
    margin-top: 10px;
    display: none;
}
.dgc-error-msg.is-visible { display: block; }

.dgc-field input.dgc-invalid,
.dgc-field select.dgc-invalid,
.dgc-field textarea.dgc-invalid {
    border-color: #b3121b;
    background: #fff6f6;
}

@media (max-width: 640px) {
    .dgc-form { padding: 22px; border-radius: 10px; }
    .dgc-grid { grid-template-columns: 1fr; gap: 14px; }
    .dgc-submit-row { text-align: center; }
    .dgc-btn { width: 100%; justify-content: center; }
}

/* Modal / popup */
.dgc-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(20,20,20,0.55);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: dgc-fade .25s ease;
}
.dgc-modal-overlay.is-open { display: flex; }
@keyframes dgc-fade { from { opacity: 0; } to { opacity: 1; } }

.dgc-modal {
    background: #fff;
    border-radius: 16px;
    max-width: 420px;
    width: 100%;
    padding: 40px 32px 32px;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: dgc-pop .3s cubic-bezier(.34,1.56,.64,1);
}
@keyframes dgc-pop {
    from { transform: scale(.85); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.dgc-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    color: #999;
}
.dgc-modal-close:hover { color: #333; }
.dgc-modal-icon { margin-bottom: 10px; }
.dgc-check-circle {
    stroke: #1e9e5a;
    stroke-width: 2.5;
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    animation: dgc-circle .5s ease forwards .1s;
}
.dgc-check-mark {
    stroke: #1e9e5a;
    stroke-width: 3.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: dgc-check .35s ease forwards .5s;
}
@keyframes dgc-circle { to { stroke-dashoffset: 0; } }
@keyframes dgc-check { to { stroke-dashoffset: 0; } }
.dgc-modal h3 {
    margin: 6px 0 10px;
    font-size: 22px;
    color: #1a1a1a;
}
.dgc-modal p {
    color: #555;
    font-size: 15.5px;
    line-height: 1.5;
    margin-bottom: 24px;
}
.dgc-modal-btn {
    width: 100%;
    justify-content: center;
}