@font-face {
    font-family: 'Vazirmatn';
    src: url('https://netphp.ir/fonts/Vazirmatn-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
    crossorigin: anonymous;
}

.dc-container {
    width: 100%;
    max-width: 900px;
    margin: 60px auto;
    padding: 40px;
    background: linear-gradient(135deg, #ffffff, #e6f3ff);
    border-radius: 24px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    font-family: 'Vazirmatn', sans-serif;
    direction: rtl;
}

.dc-container h1 {
    font-size: 34px;
    color: #1e40af;
    text-align: center;
    margin-bottom: 35px;
    font-weight: 700;
    letter-spacing: -0.5px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.dc-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.dc-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    background: #f9fafb;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.dc-radio {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: #ffffff;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #d1d5db;
    min-width: 220px;
}

.dc-radio:hover {
    background: #eff6ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.dc-radio input[type="radio"] {
    accent-color: #3b82f6;
    width: 20px;
    height: 20px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.dc-radio input[type="radio"]:checked {
    transform: scale(1.2);
}

.dc-radio span {
    font-size: 17px;
    color: #1f2937;
    font-weight: 500;
}

.dc-input-group {
    display: grid;
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    gap: 20px;
    padding: 20px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.dc-field {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dc-field label {
    font-size: 15px;
    color: #1f2937;
    font-weight: 600;
    text-align: center;
}

.dc-field select,
.dc-field input {
    width: 100%;
    min-width: 220px !important;
    height: 52px !important;
    padding: 14px 16px 14px 8px;
    font-size: 16px;
    line-height: 1.5;
    border: 1px solid #d1d5db !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    color: #1f2937 !important;
    font-family: 'Vazirmatn', sans-serif !important;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    overflow: visible;
    text-overflow: none;
    direction: rtl;
}

.dc-field select:focus,
.dc-field input:focus {
    outline: none;
    border-color: #3b82f6 !important;
    transform: translateY(-2px);
}

.dc-field select {
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%231f2937" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: left 5px center;
    padding-left: 18px;
}

.dc-field select option {
    background: #ffffff;
    color: #1f2937;
    font-size: 14px;
    padding: 12px;
    min-height: 32px;
    text-align: center;
    direction: rtl;
    white-space: normal;
    line-height: 1.5;
}

.dc-month-group,
.dc-year-group {
    position: relative;
}

.dc-month-selectors {
    position: relative;
}

.dc-month,
.dc-year {
    width: 100%;
}

.dc-year {
    padding: 14px 8px;
    border: 1px solid #d1d5db !important;
    border-radius: 10px !important;
    height: 52px !important;
    min-width: 220px !important;
}

.dc-year.error {
    border-color: #ef4444 !important;
}

.dc-year::placeholder {
    color: #6b7280 !important;
    text-align: center;
}

.dc-submit {
    display: flex;
    justify-content: center;
    width: 220px;
    margin: 20px auto 0;
    padding: 0.75rem 1.5rem;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: -0.5px;
    background: linear-gradient(90deg, #3b82f6, #1e40af);
    color: #ffffff !important;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-family: 'Vazirmatn', sans-serif !important;
    transition: background 0.2s, transform 0.1s;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

.dc-submit:hover {
    background: linear-gradient(90deg, #1e40af, #1e3a8a);
    transform: scale(1.05);
}

.dc-submit:active {
    transform: scale(0.95);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.dc-submit:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    box-shadow: none;
}

.dc-result-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    padding: 20px;
    background: #f9fafb;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.dc-result-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 17px;
    color: #1f2937;
    font-family: 'Vazirmatn', sans-serif;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    min-width: 220px;
    flex: 1;
}

.dc-result-card:hover {
    background: #eff6ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.dc-result-card svg {
    width: 24px;
    height: 24px;
    stroke: #3b82f6;
    stroke-width: 2;
}

.dc-result-card span {
    flex-grow: 1;
    font-weight: 500;
    color: #1f2937;
}

.dc-result-card strong {
    font-weight: 700;
    color: #1e40af;
}

.dc-result-group img {
    display: inline-block !important;
    margin: 20px auto;
    width: 50px !important;
    height: 50px !important;
    max-width: 50px !important;
    max-height: 50px !important;
    object-fit: contain !important;
    object-position: center;
}

@media (max-width: 768px) {
    .dc-container {
        max-width: 95%;
        padding: 25px;
        margin: 30px auto;
    }

    .dc-container h1 {
        font-size: 28px;
    }

    .dc-radio-group {
        flex-direction: column;
        padding: 15px;
    }

    .dc-radio {
        padding: 10px 15px;
        min-width: 100%;
    }

    .dc-input-group {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 15px;
    }

    .dc-field select,
    .dc-field input {
        min-width: 100% !important;
        padding: 12px 12px 12px 6px;
        font-size: 15px;
        height: 48px !important;
    }

    .dc-field select {
        padding-left: 16px;
        background-position: left 4px center;
    }

    .dc-year {
        padding: 12px 6px;
        height: 48px !important;
        min-width: 100% !important;
    }

    .dc-submit {
        width: 200px;
        padding: 0.5rem 1rem;
        font-size: 16px;
        font-weight: 500;
        line-height: 1.5;
        letter-spacing: -0.5px;
    }

    .dc-result-group {
        flex-direction: column;
        padding: 15px;
    }

    .dc-result-card {
        min-width: 100%;
        padding: 10px 15px;
        font-size: 16px;
    }

    .dc-result-group img {
        display: inline-block !important;
        width: 50px !important;
        height: 50px !important;
        max-width: 50px !important;
        max-height: 50px !important;
        object-fit: contain !important;
        object-position: center;
    }
}