/* Main Wrapper */
#nc-calculator-wrapper {
    max-width: 900px;
    margin: 0 auto;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: #333;
    padding: 20px;
    background: #fff;
    border: 1px solid #eee;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.nc-title {
    text-align: center;
    color: #B71C1C;
    /* Deep Red */
    margin-bottom: 2rem;
    text-transform: uppercase;
    font-weight: 700;
}

/* Form Styles */
#nc-form {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-bottom: 30px;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border-top: 3px solid #B71C1C;
}

.nc-form-group {
    flex: 1;
    min-width: 250px;
    display: flex;
    flex-direction: column;
}

.nc-form-group label {
    font-weight: bold;
    margin-bottom: 5px;
    color: #000;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.nc-form-group input {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.nc-form-group input:focus {
    border-color: #B71C1C;
    outline: none;
}

#nc-submit-btn {
    background: #B71C1C;
    color: #fff;
    border: none;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 4px;
    align-self: flex-end;
    /* Align with inputs */
    margin-bottom: 2px;
    /* Slight adjustment for alignment */
    transition: background 0.3s;
}

#nc-submit-btn:hover {
    background: #000;
}

/* Results Section */
.nc-result-header {
    text-align: center;
    color: #000;
    margin-bottom: 25px;
    font-weight: 300;
    font-size: 1.5rem;
}

.nc-result-header span {
    font-weight: 700;
    color: #B71C1C;
}

.nc-grid {
    display: grid;
    grid-template-columns: 1fr;
    /* 1 box per line */
    gap: 20px;
}

/* Card Styles */
.nc-card {
    background: #f4f4f4;
    padding: 20px;
    border-radius: 8px;
    border-left: 5px solid #000;
    transition: transform 0.2s;
}

.nc-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.nc-card:nth-child(even) {
    border-left-color: #B71C1C;
}

.nc-card-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Number Circle - Simulating the Galaxy/Starry look with CSS */
.nc-number-circle {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #4a148c, #000);
    /* Purple to Black base */
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
    font-weight: bold;
    box-shadow: 0 0 15px rgba(74, 20, 140, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

/* Adding 'stars' via pseudo-elements is a nice touch but kept simple for now */
.nc-number-circle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(white, rgba(255, 255, 255, .2) 2px, transparent 3px),
        radial-gradient(white, rgba(255, 255, 255, .15) 1px, transparent 2px),
        radial-gradient(white, rgba(255, 255, 255, .1) 2px, transparent 3px);
    background-size: 550px 550px, 350px 350px, 250px 250px;
    background-position: 0 0, 40px 60px, 130px 270px;
    opacity: 0.6;
}

.nc-text-content {
    flex: 1;
}

.nc-text-content h4 {
    margin: 0 0 5px 0;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: #666;
    letter-spacing: 0.5px;
}

.nc-text-content h5 {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
    font-weight: bold;
    color: #000;
}

.nc-text-content p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #444;
}

/* Responsive */
@media (max-width: 768px) {
    .nc-grid {
        grid-template-columns: 1fr;
    }

    .nc-card-content {
        flex-direction: column;
        text-align: center;
    }

    .nc-text-content h4,
    .nc-text-content h5 {
        text-align: center;
    }
}