/* Custom styles for opinion form */
.form-container {
    max-width: 800px;
    margin: 0 auto;
}

.required-field::after {
    content: " *";
    color: #dc3545;
}

.email-field {
    display: none;
}

.email-field.show {
    display: block;
}

.form-check-input:invalid ~ .invalid-feedback {
    display: block;
}

.was-validated .form-check-input:invalid {
    border-color: #dc3545;
}

.was-validated .form-check-input:invalid ~ .form-check-label {
    color: #dc3545;
}

.d-grid {
    margin-bottom: 3rem;
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    h1 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem !important;
    }
    
    .modal-dialog {
        margin: 0.5rem;
    }
    
    .row.mb-2 .col-4 {
        font-size: 0.9rem;
        margin-bottom: 0.25rem;
    }
    
    .row.mb-2 .col-8 {
        font-size: 0.9rem;
    }
}

/* レシート画像アップロード */
.receipt-thumb-wrap {
	position: relative;
	width: 80px;
	height: 80px;
	flex-shrink: 0;
}

.receipt-thumb {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 6px;
	border: 1px solid #dee2e6;
}

.receipt-thumb-remove {
	position: absolute;
	top: -6px;
	right: -6px;
	width: 22px;
	height: 22px;
	padding: 0;
	font-size: 12px;
	line-height: 1;
	border-radius: 50%;
}

.receipt-thumb-spinner {
	position: absolute;
	inset: 0;
	background: rgba(255, 255, 255, 0.75);
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 6px;
}

#addImageLabel.disabled {
	pointer-events: none;
	opacity: 0.45;
}

.receipt-limit-msg {
	font-size: 0.8rem;
	color: #6c757d;
	margin-top: 0.25rem;
	display: none;
}

.receipt-limit-msg.show {
	display: block;
}

.receipt-notice {
	background-color: #fff3cd;
	border: 1px solid #ffc107;
	border-left: 5px solid #e6a000;
	border-radius: 4px;
	padding: 0.75rem 1rem;
	margin-bottom: 0.75rem;
}

.receipt-notice-title {
	font-weight: 700;
	font-size: 0.9rem;
	color: #5a3e00;
	margin-bottom: 0.4rem;
}

.receipt-notice ul {
	margin: 0 0 0.4rem 0;
	padding-left: 1.25rem;
	font-size: 0.875rem;
	color: #5a3e00;
}

.receipt-notice-sub {
	font-size: 0.8rem;
	color: #7a5a00;
	margin: 0;
}

@media (max-width: 576px) {
    .row.mb-2 .col-4,
    .row.mb-2 .col-8 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .row.mb-2 .col-4 {
        margin-bottom: 0.25rem;
        font-weight: bold;
    }
    
    .row.mb-2 .col-8 {
        margin-bottom: 1rem;
        padding-left: 1rem;
    }
}
